using Newtonsoft.Json; namespace Jellyfin.Plugin.TubeArchivistMetadata.TubeArchivist { /// /// A class representing TubeArchivist API channel data. /// public class Channel { /// /// Initializes a new instance of the class. /// /// URL of the channel banner image. /// Channel description. /// Channel YouTube id. /// Channel name. /// URL of the channel thumb image. /// URL of the channel tvart image. public Channel( string bannerUrl, string description, string id, string name, string thumbUrl, string tvartUrl) { this.BannerUrl = bannerUrl; this.Description = description; this.Id = id; this.Name = name; this.ThumbUrl = thumbUrl; this.TvartUrl = tvartUrl; } /// /// Gets or sets the URL of the channel banner image. /// [JsonProperty(PropertyName = "channel_banner_url")] public string BannerUrl { get; set; } /// /// Gets or sets the channel description. /// [JsonProperty(PropertyName = "channel_description")] public string Description { get; set; } /// /// Gets or sets the channel YouTube id. /// [JsonProperty(PropertyName = "channel_id")] public string Id { get; set; } /// /// Gets or sets the channel name. /// [JsonProperty(PropertyName = "channel_name")] public string Name { get; set; } /// /// Gets or sets the URL of the channel thumb image. /// [JsonProperty(PropertyName = "channel_thumb_url")] public string ThumbUrl { get; set; } /// /// Gets or sets the URL of the channel tvart image. /// [JsonProperty(PropertyName = "channel_tvart_url")] public string TvartUrl { get; set; } } }