DayDto.cs 1021 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. /// Day dto.
  8. /// </summary>
  9. public class DayDto
  10. {
  11. /// <summary>
  12. /// Initializes a new instance of the <see cref="DayDto"/> class.
  13. /// </summary>
  14. public DayDto()
  15. {
  16. Programs = new List<ProgramDto>();
  17. }
  18. /// <summary>
  19. /// Gets or sets the station id.
  20. /// </summary>
  21. [JsonPropertyName("stationID")]
  22. public string StationId { get; set; }
  23. /// <summary>
  24. /// Gets or sets the list of programs.
  25. /// </summary>
  26. [JsonPropertyName("programs")]
  27. public List<ProgramDto> Programs { get; set; }
  28. /// <summary>
  29. /// Gets or sets the metadata schedule.
  30. /// </summary>
  31. [JsonPropertyName("metadata")]
  32. public MetadataScheduleDto Metadata { get; set; }
  33. }
  34. }