BaseItemDto.cs 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  1. using MediaBrowser.Model.Drawing;
  2. using MediaBrowser.Model.Entities;
  3. using MediaBrowser.Model.Extensions;
  4. using MediaBrowser.Model.Library;
  5. using MediaBrowser.Model.LiveTv;
  6. using MediaBrowser.Model.Providers;
  7. using MediaBrowser.Model.Sync;
  8. using System;
  9. using System.Collections.Generic;
  10. using System.Diagnostics;
  11. using MediaBrowser.Model.Serialization;
  12. namespace MediaBrowser.Model.Dto
  13. {
  14. /// <summary>
  15. /// This is strictly used as a data transfer object from the api layer.
  16. /// This holds information about a BaseItem in a format that is convenient for the client.
  17. /// </summary>
  18. [DebuggerDisplay("Name = {Name}, ID = {Id}, Type = {Type}")]
  19. public class BaseItemDto : IHasProviderIds, IItemDto, IHasServerId, IHasSyncInfo
  20. {
  21. /// <summary>
  22. /// Gets or sets the name.
  23. /// </summary>
  24. /// <value>The name.</value>
  25. public string Name { get; set; }
  26. public string OriginalTitle { get; set; }
  27. /// <summary>
  28. /// Gets or sets the server identifier.
  29. /// </summary>
  30. /// <value>The server identifier.</value>
  31. public string ServerId { get; set; }
  32. /// <summary>
  33. /// Gets or sets the id.
  34. /// </summary>
  35. /// <value>The id.</value>
  36. public string Id { get; set; }
  37. /// <summary>
  38. /// Gets or sets the etag.
  39. /// </summary>
  40. /// <value>The etag.</value>
  41. public string Etag { get; set; }
  42. /// <summary>
  43. /// Gets or sets the type of the source.
  44. /// </summary>
  45. /// <value>The type of the source.</value>
  46. public string SourceType { get; set; }
  47. /// <summary>
  48. /// Gets or sets the playlist item identifier.
  49. /// </summary>
  50. /// <value>The playlist item identifier.</value>
  51. public string PlaylistItemId { get; set; }
  52. /// <summary>
  53. /// Gets or sets the date created.
  54. /// </summary>
  55. /// <value>The date created.</value>
  56. public DateTime? DateCreated { get; set; }
  57. public DateTime? DateLastMediaAdded { get; set; }
  58. public string ExtraType { get; set; }
  59. public int? AirsBeforeSeasonNumber { get; set; }
  60. public int? AirsAfterSeasonNumber { get; set; }
  61. public int? AirsBeforeEpisodeNumber { get; set; }
  62. public int? AbsoluteEpisodeNumber { get; set; }
  63. public bool? DisplaySpecialsWithSeasons { get; set; }
  64. public bool? CanDelete { get; set; }
  65. public bool? CanDownload { get; set; }
  66. public bool? HasSubtitles { get; set; }
  67. public bool? SupportsMediaSourceSelection { get; set; }
  68. public string PreferredMetadataLanguage { get; set; }
  69. public string PreferredMetadataCountryCode { get; set; }
  70. /// <summary>
  71. /// Gets or sets a value indicating whether [supports synchronize].
  72. /// </summary>
  73. /// <value><c>null</c> if [supports synchronize] contains no value, <c>true</c> if [supports synchronize]; otherwise, <c>false</c>.</value>
  74. public bool? SupportsSync { get; set; }
  75. /// <summary>
  76. /// Gets or sets a value indicating whether this instance has synchronize job.
  77. /// </summary>
  78. /// <value><c>null</c> if [has synchronize job] contains no value, <c>true</c> if [has synchronize job]; otherwise, <c>false</c>.</value>
  79. public bool? HasSyncJob { get; set; }
  80. /// <summary>
  81. /// Gets or sets a value indicating whether this instance is synced.
  82. /// </summary>
  83. /// <value><c>null</c> if [is synced] contains no value, <c>true</c> if [is synced]; otherwise, <c>false</c>.</value>
  84. public bool? IsSynced { get; set; }
  85. /// <summary>
  86. /// Gets or sets the synchronize status.
  87. /// </summary>
  88. /// <value>The synchronize status.</value>
  89. public SyncJobItemStatus? SyncStatus { get; set; }
  90. /// <summary>
  91. /// Gets or sets the synchronize percent.
  92. /// </summary>
  93. /// <value>The synchronize percent.</value>
  94. public double? SyncPercent { get; set; }
  95. public string Container { get; set; }
  96. /// <summary>
  97. /// Gets or sets the DVD season number.
  98. /// </summary>
  99. /// <value>The DVD season number.</value>
  100. public int? DvdSeasonNumber { get; set; }
  101. /// <summary>
  102. /// Gets or sets the DVD episode number.
  103. /// </summary>
  104. /// <value>The DVD episode number.</value>
  105. public float? DvdEpisodeNumber { get; set; }
  106. /// <summary>
  107. /// Gets or sets the name of the sort.
  108. /// </summary>
  109. /// <value>The name of the sort.</value>
  110. public string SortName { get; set; }
  111. public string ForcedSortName { get; set; }
  112. /// <summary>
  113. /// Gets or sets the video3 D format.
  114. /// </summary>
  115. /// <value>The video3 D format.</value>
  116. public Video3DFormat? Video3DFormat { get; set; }
  117. /// <summary>
  118. /// Gets or sets the premiere date.
  119. /// </summary>
  120. /// <value>The premiere date.</value>
  121. public DateTime? PremiereDate { get; set; }
  122. /// <summary>
  123. /// Gets or sets the external urls.
  124. /// </summary>
  125. /// <value>The external urls.</value>
  126. public ExternalUrl[] ExternalUrls { get; set; }
  127. /// <summary>
  128. /// Gets or sets the media versions.
  129. /// </summary>
  130. /// <value>The media versions.</value>
  131. public List<MediaSourceInfo> MediaSources { get; set; }
  132. /// <summary>
  133. /// Gets or sets the critic rating.
  134. /// </summary>
  135. /// <value>The critic rating.</value>
  136. public float? CriticRating { get; set; }
  137. /// <summary>
  138. /// Gets or sets the game system.
  139. /// </summary>
  140. /// <value>The game system.</value>
  141. public string GameSystem { get; set; }
  142. public string[] ProductionLocations { get; set; }
  143. public string[] MultiPartGameFiles { get; set; }
  144. /// <summary>
  145. /// Gets or sets the path.
  146. /// </summary>
  147. /// <value>The path.</value>
  148. public string Path { get; set; }
  149. /// <summary>
  150. /// Gets or sets the official rating.
  151. /// </summary>
  152. /// <value>The official rating.</value>
  153. public string OfficialRating { get; set; }
  154. /// <summary>
  155. /// Gets or sets the custom rating.
  156. /// </summary>
  157. /// <value>The custom rating.</value>
  158. public string CustomRating { get; set; }
  159. /// <summary>
  160. /// Gets or sets the channel identifier.
  161. /// </summary>
  162. /// <value>The channel identifier.</value>
  163. public string ChannelId { get; set; }
  164. public string ChannelName { get; set; }
  165. public string ServiceName { get; set; }
  166. /// <summary>
  167. /// Gets or sets the overview.
  168. /// </summary>
  169. /// <value>The overview.</value>
  170. public string Overview { get; set; }
  171. /// <summary>
  172. /// Gets or sets the taglines.
  173. /// </summary>
  174. /// <value>The taglines.</value>
  175. public string[] Taglines { get; set; }
  176. /// <summary>
  177. /// Gets or sets the genres.
  178. /// </summary>
  179. /// <value>The genres.</value>
  180. public List<string> Genres { get; set; }
  181. /// <summary>
  182. /// Gets or sets the community rating.
  183. /// </summary>
  184. /// <value>The community rating.</value>
  185. public float? CommunityRating { get; set; }
  186. /// <summary>
  187. /// Gets or sets the cumulative run time ticks.
  188. /// </summary>
  189. /// <value>The cumulative run time ticks.</value>
  190. public long? CumulativeRunTimeTicks { get; set; }
  191. /// <summary>
  192. /// Gets or sets the run time ticks.
  193. /// </summary>
  194. /// <value>The run time ticks.</value>
  195. public long? RunTimeTicks { get; set; }
  196. /// <summary>
  197. /// Gets or sets the play access.
  198. /// </summary>
  199. /// <value>The play access.</value>
  200. public PlayAccess? PlayAccess { get; set; }
  201. /// <summary>
  202. /// Gets or sets the aspect ratio.
  203. /// </summary>
  204. /// <value>The aspect ratio.</value>
  205. public string AspectRatio { get; set; }
  206. /// <summary>
  207. /// Gets or sets the production year.
  208. /// </summary>
  209. /// <value>The production year.</value>
  210. public int? ProductionYear { get; set; }
  211. /// <summary>
  212. /// Gets or sets a value indicating whether this instance is place holder.
  213. /// </summary>
  214. /// <value><c>null</c> if [is place holder] contains no value, <c>true</c> if [is place holder]; otherwise, <c>false</c>.</value>
  215. public bool? IsPlaceHolder { get; set; }
  216. /// <summary>
  217. /// Gets or sets the number.
  218. /// </summary>
  219. /// <value>The number.</value>
  220. public string Number { get; set; }
  221. public string ChannelNumber { get; set; }
  222. /// <summary>
  223. /// Gets or sets the index number.
  224. /// </summary>
  225. /// <value>The index number.</value>
  226. public int? IndexNumber { get; set; }
  227. /// <summary>
  228. /// Gets or sets the index number end.
  229. /// </summary>
  230. /// <value>The index number end.</value>
  231. public int? IndexNumberEnd { get; set; }
  232. /// <summary>
  233. /// Gets or sets the parent index number.
  234. /// </summary>
  235. /// <value>The parent index number.</value>
  236. public int? ParentIndexNumber { get; set; }
  237. /// <summary>
  238. /// Gets or sets the trailer urls.
  239. /// </summary>
  240. /// <value>The trailer urls.</value>
  241. public MediaUrl[] RemoteTrailers { get; set; }
  242. /// <summary>
  243. /// Gets or sets the provider ids.
  244. /// </summary>
  245. /// <value>The provider ids.</value>
  246. public Dictionary<string, string> ProviderIds { get; set; }
  247. /// <summary>
  248. /// Gets or sets a value indicating whether this instance is HD.
  249. /// </summary>
  250. /// <value><c>null</c> if [is HD] contains no value, <c>true</c> if [is HD]; otherwise, <c>false</c>.</value>
  251. public bool? IsHD { get; set; }
  252. /// <summary>
  253. /// Gets or sets a value indicating whether this instance is folder.
  254. /// </summary>
  255. /// <value><c>true</c> if this instance is folder; otherwise, <c>false</c>.</value>
  256. public bool? IsFolder { get; set; }
  257. /// <summary>
  258. /// Gets or sets the parent id.
  259. /// </summary>
  260. /// <value>The parent id.</value>
  261. public string ParentId { get; set; }
  262. /// <summary>
  263. /// Gets or sets the type.
  264. /// </summary>
  265. /// <value>The type.</value>
  266. public string Type { get; set; }
  267. /// <summary>
  268. /// Gets or sets the people.
  269. /// </summary>
  270. /// <value>The people.</value>
  271. public BaseItemPerson[] People { get; set; }
  272. /// <summary>
  273. /// Gets or sets the studios.
  274. /// </summary>
  275. /// <value>The studios.</value>
  276. public NameIdPair[] Studios { get; set; }
  277. public NameIdPair[] GenreItems { get; set; }
  278. /// <summary>
  279. /// If the item does not have a logo, this will hold the Id of the Parent that has one.
  280. /// </summary>
  281. /// <value>The parent logo item id.</value>
  282. public string ParentLogoItemId { get; set; }
  283. /// <summary>
  284. /// If the item does not have any backdrops, this will hold the Id of the Parent that has one.
  285. /// </summary>
  286. /// <value>The parent backdrop item id.</value>
  287. public string ParentBackdropItemId { get; set; }
  288. /// <summary>
  289. /// Gets or sets the parent backdrop image tags.
  290. /// </summary>
  291. /// <value>The parent backdrop image tags.</value>
  292. public string[] ParentBackdropImageTags { get; set; }
  293. /// <summary>
  294. /// Gets or sets the local trailer count.
  295. /// </summary>
  296. /// <value>The local trailer count.</value>
  297. public int? LocalTrailerCount { get; set; }
  298. /// <summary>
  299. /// User data for this item based on the user it's being requested for
  300. /// </summary>
  301. /// <value>The user data.</value>
  302. public UserItemDataDto UserData { get; set; }
  303. /// <summary>
  304. /// Gets or sets the recursive item count.
  305. /// </summary>
  306. /// <value>The recursive item count.</value>
  307. public int? RecursiveItemCount { get; set; }
  308. /// <summary>
  309. /// Gets or sets the child count.
  310. /// </summary>
  311. /// <value>The child count.</value>
  312. public int? ChildCount { get; set; }
  313. /// <summary>
  314. /// Gets or sets the name of the series.
  315. /// </summary>
  316. /// <value>The name of the series.</value>
  317. public string SeriesName { get; set; }
  318. /// <summary>
  319. /// Gets or sets the series id.
  320. /// </summary>
  321. /// <value>The series id.</value>
  322. public string SeriesId { get; set; }
  323. /// <summary>
  324. /// Gets or sets the season identifier.
  325. /// </summary>
  326. /// <value>The season identifier.</value>
  327. public string SeasonId { get; set; }
  328. /// <summary>
  329. /// Gets or sets the special feature count.
  330. /// </summary>
  331. /// <value>The special feature count.</value>
  332. public int? SpecialFeatureCount { get; set; }
  333. /// <summary>
  334. /// Gets or sets the display preferences id.
  335. /// </summary>
  336. /// <value>The display preferences id.</value>
  337. public string DisplayPreferencesId { get; set; }
  338. /// <summary>
  339. /// Gets or sets the status.
  340. /// </summary>
  341. /// <value>The status.</value>
  342. public string Status { get; set; }
  343. /// <summary>
  344. /// Gets or sets the air time.
  345. /// </summary>
  346. /// <value>The air time.</value>
  347. public string AirTime { get; set; }
  348. /// <summary>
  349. /// Gets or sets the air days.
  350. /// </summary>
  351. /// <value>The air days.</value>
  352. public DayOfWeek[] AirDays { get; set; }
  353. /// <summary>
  354. /// Gets or sets the tags.
  355. /// </summary>
  356. /// <value>The tags.</value>
  357. public string[] Tags { get; set; }
  358. /// <summary>
  359. /// Gets or sets the primary image aspect ratio, after image enhancements.
  360. /// </summary>
  361. /// <value>The primary image aspect ratio.</value>
  362. public double? PrimaryImageAspectRatio { get; set; }
  363. /// <summary>
  364. /// Gets or sets the artists.
  365. /// </summary>
  366. /// <value>The artists.</value>
  367. public string[] Artists { get; set; }
  368. /// <summary>
  369. /// Gets or sets the artist items.
  370. /// </summary>
  371. /// <value>The artist items.</value>
  372. public NameIdPair[] ArtistItems { get; set; }
  373. /// <summary>
  374. /// Gets or sets the album.
  375. /// </summary>
  376. /// <value>The album.</value>
  377. public string Album { get; set; }
  378. /// <summary>
  379. /// Gets or sets the type of the collection.
  380. /// </summary>
  381. /// <value>The type of the collection.</value>
  382. public string CollectionType { get; set; }
  383. /// <summary>
  384. /// Gets or sets the display order.
  385. /// </summary>
  386. /// <value>The display order.</value>
  387. public string DisplayOrder { get; set; }
  388. /// <summary>
  389. /// Gets or sets the album id.
  390. /// </summary>
  391. /// <value>The album id.</value>
  392. public string AlbumId { get; set; }
  393. /// <summary>
  394. /// Gets or sets the album image tag.
  395. /// </summary>
  396. /// <value>The album image tag.</value>
  397. public string AlbumPrimaryImageTag { get; set; }
  398. /// <summary>
  399. /// Gets or sets the series primary image tag.
  400. /// </summary>
  401. /// <value>The series primary image tag.</value>
  402. public string SeriesPrimaryImageTag { get; set; }
  403. /// <summary>
  404. /// Gets or sets the album artist.
  405. /// </summary>
  406. /// <value>The album artist.</value>
  407. public string AlbumArtist { get; set; }
  408. /// <summary>
  409. /// Gets or sets the album artists.
  410. /// </summary>
  411. /// <value>The album artists.</value>
  412. public NameIdPair[] AlbumArtists { get; set; }
  413. /// <summary>
  414. /// Gets or sets the name of the season.
  415. /// </summary>
  416. /// <value>The name of the season.</value>
  417. public string SeasonName { get; set; }
  418. /// <summary>
  419. /// Gets or sets the media streams.
  420. /// </summary>
  421. /// <value>The media streams.</value>
  422. public MediaStream[] MediaStreams { get; set; }
  423. /// <summary>
  424. /// Gets or sets the type of the video.
  425. /// </summary>
  426. /// <value>The type of the video.</value>
  427. public VideoType? VideoType { get; set; }
  428. /// <summary>
  429. /// Gets or sets the part count.
  430. /// </summary>
  431. /// <value>The part count.</value>
  432. public int? PartCount { get; set; }
  433. public int? MediaSourceCount { get; set; }
  434. /// <summary>
  435. /// Determines whether the specified type is type.
  436. /// </summary>
  437. /// <param name="type">The type.</param>
  438. /// <returns><c>true</c> if the specified type is type; otherwise, <c>false</c>.</returns>
  439. public bool IsType(Type type)
  440. {
  441. return IsType(type.Name);
  442. }
  443. /// <summary>
  444. /// Determines whether the specified type is type.
  445. /// </summary>
  446. /// <param name="type">The type.</param>
  447. /// <returns><c>true</c> if the specified type is type; otherwise, <c>false</c>.</returns>
  448. public bool IsType(string type)
  449. {
  450. return StringHelper.EqualsIgnoreCase(Type, type);
  451. }
  452. /// <summary>
  453. /// Gets or sets the image tags.
  454. /// </summary>
  455. /// <value>The image tags.</value>
  456. public Dictionary<ImageType, string> ImageTags { get; set; }
  457. /// <summary>
  458. /// Gets or sets the backdrop image tags.
  459. /// </summary>
  460. /// <value>The backdrop image tags.</value>
  461. public string[] BackdropImageTags { get; set; }
  462. /// <summary>
  463. /// Gets or sets the screenshot image tags.
  464. /// </summary>
  465. /// <value>The screenshot image tags.</value>
  466. public string[] ScreenshotImageTags { get; set; }
  467. /// <summary>
  468. /// Gets or sets the parent logo image tag.
  469. /// </summary>
  470. /// <value>The parent logo image tag.</value>
  471. public string ParentLogoImageTag { get; set; }
  472. /// <summary>
  473. /// If the item does not have a art, this will hold the Id of the Parent that has one.
  474. /// </summary>
  475. /// <value>The parent art item id.</value>
  476. public string ParentArtItemId { get; set; }
  477. /// <summary>
  478. /// Gets or sets the parent art image tag.
  479. /// </summary>
  480. /// <value>The parent art image tag.</value>
  481. public string ParentArtImageTag { get; set; }
  482. /// <summary>
  483. /// Gets or sets the series thumb image tag.
  484. /// </summary>
  485. /// <value>The series thumb image tag.</value>
  486. public string SeriesThumbImageTag { get; set; }
  487. /// <summary>
  488. /// Gets or sets the series studio.
  489. /// </summary>
  490. /// <value>The series studio.</value>
  491. public string SeriesStudio { get; set; }
  492. /// <summary>
  493. /// Gets or sets the parent thumb item id.
  494. /// </summary>
  495. /// <value>The parent thumb item id.</value>
  496. public string ParentThumbItemId { get; set; }
  497. /// <summary>
  498. /// Gets or sets the parent thumb image tag.
  499. /// </summary>
  500. /// <value>The parent thumb image tag.</value>
  501. public string ParentThumbImageTag { get; set; }
  502. /// <summary>
  503. /// Gets or sets the parent primary image item identifier.
  504. /// </summary>
  505. /// <value>The parent primary image item identifier.</value>
  506. public string ParentPrimaryImageItemId { get; set; }
  507. /// <summary>
  508. /// Gets or sets the parent primary image tag.
  509. /// </summary>
  510. /// <value>The parent primary image tag.</value>
  511. public string ParentPrimaryImageTag { get; set; }
  512. /// <summary>
  513. /// Gets or sets the chapters.
  514. /// </summary>
  515. /// <value>The chapters.</value>
  516. public List<ChapterInfoDto> Chapters { get; set; }
  517. /// <summary>
  518. /// Gets or sets the type of the location.
  519. /// </summary>
  520. /// <value>The type of the location.</value>
  521. public LocationType? LocationType { get; set; }
  522. /// <summary>
  523. /// Gets or sets the type of the iso.
  524. /// </summary>
  525. /// <value>The type of the iso.</value>
  526. public IsoType? IsoType { get; set; }
  527. /// <summary>
  528. /// Gets or sets the type of the media.
  529. /// </summary>
  530. /// <value>The type of the media.</value>
  531. public string MediaType { get; set; }
  532. /// <summary>
  533. /// Gets or sets the end date.
  534. /// </summary>
  535. /// <value>The end date.</value>
  536. public DateTime? EndDate { get; set; }
  537. /// <summary>
  538. /// Gets or sets the home page URL.
  539. /// </summary>
  540. /// <value>The home page URL.</value>
  541. public string HomePageUrl { get; set; }
  542. /// <summary>
  543. /// Gets or sets the locked fields.
  544. /// </summary>
  545. /// <value>The locked fields.</value>
  546. public MetadataFields[] LockedFields { get; set; }
  547. /// <summary>
  548. /// Gets or sets the trailer count.
  549. /// </summary>
  550. /// <value>The trailer count.</value>
  551. public int? TrailerCount { get; set; }
  552. /// <summary>
  553. /// Gets or sets the movie count.
  554. /// </summary>
  555. /// <value>The movie count.</value>
  556. public int? MovieCount { get; set; }
  557. /// <summary>
  558. /// Gets or sets the series count.
  559. /// </summary>
  560. /// <value>The series count.</value>
  561. public int? SeriesCount { get; set; }
  562. public int? ProgramCount { get; set; }
  563. /// <summary>
  564. /// Gets or sets the episode count.
  565. /// </summary>
  566. /// <value>The episode count.</value>
  567. public int? EpisodeCount { get; set; }
  568. /// <summary>
  569. /// Gets or sets the game count.
  570. /// </summary>
  571. /// <value>The game count.</value>
  572. public int? GameCount { get; set; }
  573. /// <summary>
  574. /// Gets or sets the song count.
  575. /// </summary>
  576. /// <value>The song count.</value>
  577. public int? SongCount { get; set; }
  578. /// <summary>
  579. /// Gets or sets the album count.
  580. /// </summary>
  581. /// <value>The album count.</value>
  582. public int? AlbumCount { get; set; }
  583. public int? ArtistCount { get; set; }
  584. /// <summary>
  585. /// Gets or sets the music video count.
  586. /// </summary>
  587. /// <value>The music video count.</value>
  588. public int? MusicVideoCount { get; set; }
  589. /// <summary>
  590. /// Gets or sets a value indicating whether [enable internet providers].
  591. /// </summary>
  592. /// <value><c>true</c> if [enable internet providers]; otherwise, <c>false</c>.</value>
  593. public bool? LockData { get; set; }
  594. public int? Width { get; set; }
  595. public int? Height { get; set; }
  596. public string CameraMake { get; set; }
  597. public string CameraModel { get; set; }
  598. public string Software { get; set; }
  599. public double? ExposureTime { get; set; }
  600. public double? FocalLength { get; set; }
  601. public ImageOrientation? ImageOrientation { get; set; }
  602. public double? Aperture { get; set; }
  603. public double? ShutterSpeed { get; set; }
  604. public double? Latitude { get; set; }
  605. public double? Longitude { get; set; }
  606. public double? Altitude { get; set; }
  607. public int? IsoSpeedRating { get; set; }
  608. /// <summary>
  609. /// Used by RecordingGroup
  610. /// </summary>
  611. public int? RecordingCount { get; set; }
  612. /// <summary>
  613. /// Gets or sets the series timer identifier.
  614. /// </summary>
  615. /// <value>The series timer identifier.</value>
  616. public string SeriesTimerId { get; set; }
  617. /// <summary>
  618. /// Gets or sets the program identifier.
  619. /// </summary>
  620. /// <value>The program identifier.</value>
  621. public string ProgramId { get; set; }
  622. /// <summary>
  623. /// Gets or sets the channel primary image tag.
  624. /// </summary>
  625. /// <value>The channel primary image tag.</value>
  626. public string ChannelPrimaryImageTag { get; set; }
  627. /// <summary>
  628. /// The start date of the recording, in UTC.
  629. /// </summary>
  630. public DateTime? StartDate { get; set; }
  631. /// <summary>
  632. /// Gets or sets the completion percentage.
  633. /// </summary>
  634. /// <value>The completion percentage.</value>
  635. public double? CompletionPercentage { get; set; }
  636. /// <summary>
  637. /// Gets or sets a value indicating whether this instance is repeat.
  638. /// </summary>
  639. /// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value>
  640. public bool? IsRepeat { get; set; }
  641. /// <summary>
  642. /// Gets or sets the episode title.
  643. /// </summary>
  644. /// <value>The episode title.</value>
  645. public string EpisodeTitle { get; set; }
  646. /// <summary>
  647. /// Gets or sets the type of the channel.
  648. /// </summary>
  649. /// <value>The type of the channel.</value>
  650. public ChannelType? ChannelType { get; set; }
  651. /// <summary>
  652. /// Gets or sets the audio.
  653. /// </summary>
  654. /// <value>The audio.</value>
  655. public ProgramAudio? Audio { get; set; }
  656. /// <summary>
  657. /// Gets or sets a value indicating whether this instance is movie.
  658. /// </summary>
  659. /// <value><c>true</c> if this instance is movie; otherwise, <c>false</c>.</value>
  660. public bool? IsMovie { get; set; }
  661. /// <summary>
  662. /// Gets or sets a value indicating whether this instance is sports.
  663. /// </summary>
  664. /// <value><c>true</c> if this instance is sports; otherwise, <c>false</c>.</value>
  665. public bool? IsSports { get; set; }
  666. /// <summary>
  667. /// Gets or sets a value indicating whether this instance is series.
  668. /// </summary>
  669. /// <value><c>true</c> if this instance is series; otherwise, <c>false</c>.</value>
  670. public bool? IsSeries { get; set; }
  671. /// <summary>
  672. /// Gets or sets a value indicating whether this instance is live.
  673. /// </summary>
  674. /// <value><c>true</c> if this instance is live; otherwise, <c>false</c>.</value>
  675. public bool? IsLive { get; set; }
  676. /// <summary>
  677. /// Gets or sets a value indicating whether this instance is news.
  678. /// </summary>
  679. /// <value><c>true</c> if this instance is news; otherwise, <c>false</c>.</value>
  680. public bool? IsNews { get; set; }
  681. /// <summary>
  682. /// Gets or sets a value indicating whether this instance is kids.
  683. /// </summary>
  684. /// <value><c>true</c> if this instance is kids; otherwise, <c>false</c>.</value>
  685. public bool? IsKids { get; set; }
  686. /// <summary>
  687. /// Gets or sets a value indicating whether this instance is premiere.
  688. /// </summary>
  689. /// <value><c>true</c> if this instance is premiere; otherwise, <c>false</c>.</value>
  690. public bool? IsPremiere { get; set; }
  691. /// <summary>
  692. /// Gets or sets the timer identifier.
  693. /// </summary>
  694. /// <value>The timer identifier.</value>
  695. public string TimerId { get; set; }
  696. /// <summary>
  697. /// Gets or sets the current program.
  698. /// </summary>
  699. /// <value>The current program.</value>
  700. public BaseItemDto CurrentProgram { get; set; }
  701. }
  702. }