| | | 1 | | #nullable disable |
| | | 2 | | |
| | | 3 | | #pragma warning disable CS1591 |
| | | 4 | | |
| | | 5 | | using System; |
| | | 6 | | using System.Collections.Generic; |
| | | 7 | | using MediaBrowser.Model.LiveTv; |
| | | 8 | | |
| | | 9 | | namespace MediaBrowser.Controller.LiveTv |
| | | 10 | | { |
| | | 11 | | public class ProgramInfo |
| | | 12 | | { |
| | | 13 | | public ProgramInfo() |
| | | 14 | | { |
| | 4 | 15 | | Genres = new List<string>(); |
| | | 16 | | |
| | 4 | 17 | | ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); |
| | 4 | 18 | | SeriesProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); |
| | 4 | 19 | | } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Gets or sets the id of the program. |
| | | 23 | | /// </summary> |
| | | 24 | | public string Id { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// Gets or sets the channel identifier. |
| | | 28 | | /// </summary> |
| | | 29 | | /// <value>The channel identifier.</value> |
| | | 30 | | public string ChannelId { get; set; } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// Gets or sets the name of the program. |
| | | 34 | | /// </summary> |
| | | 35 | | public string Name { get; set; } |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// Gets or sets the official rating. |
| | | 39 | | /// </summary> |
| | | 40 | | /// <value>The official rating.</value> |
| | | 41 | | public string OfficialRating { get; set; } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// Gets or sets the overview. |
| | | 45 | | /// </summary> |
| | | 46 | | /// <value>The overview.</value> |
| | | 47 | | public string Overview { get; set; } |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// Gets or sets the short overview. |
| | | 51 | | /// </summary> |
| | | 52 | | /// <value>The short overview.</value> |
| | | 53 | | public string ShortOverview { get; set; } |
| | | 54 | | |
| | | 55 | | /// <summary> |
| | | 56 | | /// Gets or sets the start date of the program, in UTC. |
| | | 57 | | /// </summary> |
| | | 58 | | public DateTime StartDate { get; set; } |
| | | 59 | | |
| | | 60 | | /// <summary> |
| | | 61 | | /// Gets or sets the end date of the program, in UTC. |
| | | 62 | | /// </summary> |
| | | 63 | | public DateTime EndDate { get; set; } |
| | | 64 | | |
| | | 65 | | /// <summary> |
| | | 66 | | /// Gets or sets the genre of the program. |
| | | 67 | | /// </summary> |
| | | 68 | | public List<string> Genres { get; set; } |
| | | 69 | | |
| | | 70 | | /// <summary> |
| | | 71 | | /// Gets or sets the original air date. |
| | | 72 | | /// </summary> |
| | | 73 | | /// <value>The original air date.</value> |
| | | 74 | | public DateTime? OriginalAirDate { get; set; } |
| | | 75 | | |
| | | 76 | | /// <summary> |
| | | 77 | | /// Gets or sets a value indicating whether this instance is hd. |
| | | 78 | | /// </summary> |
| | | 79 | | /// <value><c>true</c> if this instance is hd; otherwise, <c>false</c>.</value> |
| | | 80 | | public bool? IsHD { get; set; } |
| | | 81 | | |
| | | 82 | | /// <summary> |
| | | 83 | | /// Gets or sets a value indicating whether this instance is 3d. |
| | | 84 | | /// </summary> |
| | | 85 | | public bool? Is3D { get; set; } |
| | | 86 | | |
| | | 87 | | /// <summary> |
| | | 88 | | /// Gets or sets the audio. |
| | | 89 | | /// </summary> |
| | | 90 | | /// <value>The audio.</value> |
| | | 91 | | public ProgramAudio? Audio { get; set; } |
| | | 92 | | |
| | | 93 | | /// <summary> |
| | | 94 | | /// Gets or sets the community rating. |
| | | 95 | | /// </summary> |
| | | 96 | | /// <value>The community rating.</value> |
| | | 97 | | public float? CommunityRating { get; set; } |
| | | 98 | | |
| | | 99 | | /// <summary> |
| | | 100 | | /// Gets or sets a value indicating whether this instance is repeat. |
| | | 101 | | /// </summary> |
| | | 102 | | /// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value> |
| | | 103 | | public bool IsRepeat { get; set; } |
| | | 104 | | |
| | | 105 | | public bool IsSubjectToBlackout { get; set; } |
| | | 106 | | |
| | | 107 | | /// <summary> |
| | | 108 | | /// Gets or sets the episode title. |
| | | 109 | | /// </summary> |
| | | 110 | | /// <value>The episode title.</value> |
| | | 111 | | public string EpisodeTitle { get; set; } |
| | | 112 | | |
| | | 113 | | /// <summary> |
| | | 114 | | /// Gets or sets the image path if it can be accessed directly from the file system. |
| | | 115 | | /// </summary> |
| | | 116 | | /// <value>The image path.</value> |
| | | 117 | | public string ImagePath { get; set; } |
| | | 118 | | |
| | | 119 | | /// <summary> |
| | | 120 | | /// Gets or sets the image url if it can be downloaded. |
| | | 121 | | /// </summary> |
| | | 122 | | /// <value>The image URL.</value> |
| | | 123 | | public string ImageUrl { get; set; } |
| | | 124 | | |
| | | 125 | | public string ThumbImageUrl { get; set; } |
| | | 126 | | |
| | | 127 | | public string LogoImageUrl { get; set; } |
| | | 128 | | |
| | | 129 | | public string BackdropImageUrl { get; set; } |
| | | 130 | | |
| | | 131 | | /// <summary> |
| | | 132 | | /// Gets or sets a value indicating whether this instance has image. |
| | | 133 | | /// </summary> |
| | | 134 | | /// <value><c>null</c> if [has image] contains no value, <c>true</c> if [has image]; otherwise, <c>false</c>.</v |
| | | 135 | | public bool? HasImage { get; set; } |
| | | 136 | | |
| | | 137 | | /// <summary> |
| | | 138 | | /// Gets or sets a value indicating whether this instance is movie. |
| | | 139 | | /// </summary> |
| | | 140 | | /// <value><c>true</c> if this instance is movie; otherwise, <c>false</c>.</value> |
| | | 141 | | public bool IsMovie { get; set; } |
| | | 142 | | |
| | | 143 | | /// <summary> |
| | | 144 | | /// Gets or sets a value indicating whether this instance is sports. |
| | | 145 | | /// </summary> |
| | | 146 | | /// <value><c>true</c> if this instance is sports; otherwise, <c>false</c>.</value> |
| | | 147 | | public bool IsSports { get; set; } |
| | | 148 | | |
| | | 149 | | /// <summary> |
| | | 150 | | /// Gets or sets a value indicating whether this instance is series. |
| | | 151 | | /// </summary> |
| | | 152 | | /// <value><c>true</c> if this instance is series; otherwise, <c>false</c>.</value> |
| | | 153 | | public bool IsSeries { get; set; } |
| | | 154 | | |
| | | 155 | | /// <summary> |
| | | 156 | | /// Gets or sets a value indicating whether this instance is live. |
| | | 157 | | /// </summary> |
| | | 158 | | /// <value><c>true</c> if this instance is live; otherwise, <c>false</c>.</value> |
| | | 159 | | public bool IsLive { get; set; } |
| | | 160 | | |
| | | 161 | | /// <summary> |
| | | 162 | | /// Gets or sets a value indicating whether this instance is news. |
| | | 163 | | /// </summary> |
| | | 164 | | /// <value><c>true</c> if this instance is news; otherwise, <c>false</c>.</value> |
| | | 165 | | public bool IsNews { get; set; } |
| | | 166 | | |
| | | 167 | | /// <summary> |
| | | 168 | | /// Gets or sets a value indicating whether this instance is kids. |
| | | 169 | | /// </summary> |
| | | 170 | | /// <value><c>true</c> if this instance is kids; otherwise, <c>false</c>.</value> |
| | | 171 | | public bool IsKids { get; set; } |
| | | 172 | | |
| | | 173 | | public bool IsEducational { get; set; } |
| | | 174 | | |
| | | 175 | | /// <summary> |
| | | 176 | | /// Gets or sets a value indicating whether this instance is premiere. |
| | | 177 | | /// </summary> |
| | | 178 | | /// <value><c>true</c> if this instance is premiere; otherwise, <c>false</c>.</value> |
| | | 179 | | public bool IsPremiere { get; set; } |
| | | 180 | | |
| | | 181 | | /// <summary> |
| | | 182 | | /// Gets or sets the production year. |
| | | 183 | | /// </summary> |
| | | 184 | | /// <value>The production year.</value> |
| | | 185 | | public int? ProductionYear { get; set; } |
| | | 186 | | |
| | | 187 | | /// <summary> |
| | | 188 | | /// Gets or sets the home page URL. |
| | | 189 | | /// </summary> |
| | | 190 | | /// <value>The home page URL.</value> |
| | | 191 | | public string HomePageUrl { get; set; } |
| | | 192 | | |
| | | 193 | | /// <summary> |
| | | 194 | | /// Gets or sets the series identifier. |
| | | 195 | | /// </summary> |
| | | 196 | | /// <value>The series identifier.</value> |
| | | 197 | | public string SeriesId { get; set; } |
| | | 198 | | |
| | | 199 | | /// <summary> |
| | | 200 | | /// Gets or sets the show identifier. |
| | | 201 | | /// </summary> |
| | | 202 | | /// <value>The show identifier.</value> |
| | | 203 | | public string ShowId { get; set; } |
| | | 204 | | |
| | | 205 | | /// <summary> |
| | | 206 | | /// Gets or sets the season number. |
| | | 207 | | /// </summary> |
| | | 208 | | /// <value>The season number.</value> |
| | | 209 | | public int? SeasonNumber { get; set; } |
| | | 210 | | |
| | | 211 | | /// <summary> |
| | | 212 | | /// Gets or sets the episode number. |
| | | 213 | | /// </summary> |
| | | 214 | | /// <value>The episode number.</value> |
| | | 215 | | public int? EpisodeNumber { get; set; } |
| | | 216 | | |
| | | 217 | | /// <summary> |
| | | 218 | | /// Gets or sets the etag. |
| | | 219 | | /// </summary> |
| | | 220 | | /// <value>The etag.</value> |
| | | 221 | | public string Etag { get; set; } |
| | | 222 | | |
| | | 223 | | public Dictionary<string, string> ProviderIds { get; set; } |
| | | 224 | | |
| | | 225 | | public Dictionary<string, string> SeriesProviderIds { get; set; } |
| | | 226 | | } |
| | | 227 | | } |