StationDto.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text.Json.Serialization;
  4. namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
  5. {
  6. /// <summary>
  7. /// Station dto.
  8. /// </summary>
  9. public class StationDto
  10. {
  11. /// <summary>
  12. /// Gets or sets the station id.
  13. /// </summary>
  14. [JsonPropertyName("stationID")]
  15. public string? StationId { get; set; }
  16. /// <summary>
  17. /// Gets or sets the name.
  18. /// </summary>
  19. [JsonPropertyName("name")]
  20. public string? Name { get; set; }
  21. /// <summary>
  22. /// Gets or sets the callsign.
  23. /// </summary>
  24. [JsonPropertyName("callsign")]
  25. public string? Callsign { get; set; }
  26. /// <summary>
  27. /// Gets or sets the broadcast language.
  28. /// </summary>
  29. [JsonPropertyName("broadcastLanguage")]
  30. public IReadOnlyList<string> BroadcastLanguage { get; set; } = Array.Empty<string>();
  31. /// <summary>
  32. /// Gets or sets the description language.
  33. /// </summary>
  34. [JsonPropertyName("descriptionLanguage")]
  35. public IReadOnlyList<string> DescriptionLanguage { get; set; } = Array.Empty<string>();
  36. /// <summary>
  37. /// Gets or sets the broadcaster.
  38. /// </summary>
  39. [JsonPropertyName("broadcaster")]
  40. public BroadcasterDto? Broadcaster { get; set; }
  41. /// <summary>
  42. /// Gets or sets the affiliate.
  43. /// </summary>
  44. [JsonPropertyName("affiliate")]
  45. public string? Affiliate { get; set; }
  46. /// <summary>
  47. /// Gets or sets the logo.
  48. /// </summary>
  49. [JsonPropertyName("logo")]
  50. public LogoDto? Logo { get; set; }
  51. /// <summary>
  52. /// Gets or sets a value indicating whether it is commercial free.
  53. /// </summary>
  54. [JsonPropertyName("isCommercialFree")]
  55. public bool? IsCommercialFree { get; set; }
  56. }
  57. }