BaseItemDto.cs 28 KB

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