app/BTCPayApp.Core/Data/Channel.cs
2024-07-29 13:39:12 +02:00

28 lines
541 B
C#

using System.Text.Json.Serialization;
namespace BTCPayApp.Core.Data;
public class Channel:VersionedData
{
public string Id { get; set; }
public byte[] Data { get; set; }
public List<ChannelAlias> Aliases { get; set; }
public override string EntityKey
{
get => $"Channel_{Id}";
init { }
}
}
public class ChannelAlias
{
public string Id { get; set; }
public string Type { get; set; }
public string ChannelId { get; set; }
[JsonIgnore]
public Channel Channel { get; set; }
}