ProgramDto.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text.Json.Serialization;
  4. namespace Jellyfin.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 DateTime? 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 IReadOnlyList<string> AudioProperties { get; set; } = Array.Empty<string>();
  36. /// <summary>
  37. /// Gets or sets the list of video properties.
  38. /// </summary>
  39. [JsonPropertyName("videoProperties")]
  40. public IReadOnlyList<string> VideoProperties { get; set; } = Array.Empty<string>();
  41. /// <summary>
  42. /// Gets or sets the list of ratings.
  43. /// </summary>
  44. [JsonPropertyName("ratings")]
  45. public IReadOnlyList<RatingDto> Ratings { get; set; } = Array.Empty<RatingDto>();
  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. }