BaseItemDto.cs 26 KB

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