ProgramDto.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #nullable disable
  2. using System.Collections.Generic;
  3. using System.Text.Json.Serialization;
  4. namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
  5. {
  6. /// <summary>
  7. /// Program dto.
  8. /// </summary>
  9. public class ProgramDto
  10. {
  11. /// <summary>
  12. /// Gets or sets the program id.
  13. /// </summary>
  14. [JsonPropertyName("programID")]
  15. public string ProgramId { get; set; }
  16. /// <summary>
  17. /// Gets or sets the air date time.
  18. /// </summary>
  19. [JsonPropertyName("airDateTime")]
  20. public string AirDateTime { get; set; }
  21. /// <summary>
  22. /// Gets or sets the duration.
  23. /// </summary>
  24. [JsonPropertyName("duration")]
  25. public int Duration { get; set; }
  26. /// <summary>
  27. /// Gets or sets the md5.
  28. /// </summary>
  29. [JsonPropertyName("md5")]
  30. public string Md5 { get; set; }
  31. /// <summary>
  32. /// Gets or sets the list of audio properties.
  33. /// </summary>
  34. [JsonPropertyName("audioProperties")]
  35. public List<string> AudioProperties { get; set; }
  36. /// <summary>
  37. /// Gets or sets the list of video properties.
  38. /// </summary>
  39. [JsonPropertyName("videoProperties")]
  40. public List<string> VideoProperties { get; set; }
  41. /// <summary>
  42. /// Gets or sets the list of ratings.
  43. /// </summary>
  44. [JsonPropertyName("ratings")]
  45. public List<RatingDto> Ratings { get; set; }
  46. /// <summary>
  47. /// Gets or sets a value indicating whether this program is new.
  48. /// </summary>
  49. [JsonPropertyName("new")]
  50. public bool? New { get; set; }
  51. /// <summary>
  52. /// Gets or sets the multipart object.
  53. /// </summary>
  54. [JsonPropertyName("multipart")]
  55. public MultipartDto Multipart { get; set; }
  56. /// <summary>
  57. /// Gets or sets the live tape delay.
  58. /// </summary>
  59. [JsonPropertyName("liveTapeDelay")]
  60. public string LiveTapeDelay { get; set; }
  61. /// <summary>
  62. /// Gets or sets a value indicating whether this is the premiere.
  63. /// </summary>
  64. [JsonPropertyName("premiere")]
  65. public bool Premiere { get; set; }
  66. /// <summary>
  67. /// Gets or sets a value indicating whether this is a repeat.
  68. /// </summary>
  69. [JsonPropertyName("repeat")]
  70. public bool Repeat { get; set; }
  71. /// <summary>
  72. /// Gets or sets the premiere or finale.
  73. /// </summary>
  74. [JsonPropertyName("isPremiereOrFinale")]
  75. public string IsPremiereOrFinale { get; set; }
  76. }
  77. }