LiveTvServiceStatusInfo.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. using MediaBrowser.Model.LiveTv;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Controller.LiveTv
  4. {
  5. public class LiveTvServiceStatusInfo
  6. {
  7. /// <summary>
  8. /// Gets or sets the status.
  9. /// </summary>
  10. /// <value>The status.</value>
  11. public LiveTvServiceStatus Status { get; set; }
  12. /// <summary>
  13. /// Gets or sets the status message.
  14. /// </summary>
  15. /// <value>The status message.</value>
  16. public string StatusMessage { get; set; }
  17. /// <summary>
  18. /// Gets or sets the version.
  19. /// </summary>
  20. /// <value>The version.</value>
  21. public string Version { get; set; }
  22. /// <summary>
  23. /// Gets or sets a value indicating whether this instance has update available.
  24. /// </summary>
  25. /// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
  26. public bool HasUpdateAvailable { get; set; }
  27. /// <summary>
  28. /// Gets or sets the tuners.
  29. /// </summary>
  30. /// <value>The tuners.</value>
  31. public List<LiveTvTunerInfo> Tuners { get; set; }
  32. public LiveTvServiceStatusInfo()
  33. {
  34. Tuners = new List<LiveTvTunerInfo>();
  35. }
  36. }
  37. public class LiveTvTunerInfo
  38. {
  39. /// <summary>
  40. /// Gets or sets the type of the source.
  41. /// </summary>
  42. /// <value>The type of the source.</value>
  43. public string SourceType { get; set; }
  44. /// <summary>
  45. /// Gets or sets the name.
  46. /// </summary>
  47. /// <value>The name.</value>
  48. public string Name { get; set; }
  49. /// <summary>
  50. /// Gets or sets the identifier.
  51. /// </summary>
  52. /// <value>The identifier.</value>
  53. public string Id { get; set; }
  54. /// <summary>
  55. /// Gets or sets the status.
  56. /// </summary>
  57. /// <value>The status.</value>
  58. public LiveTvTunerStatus Status { get; set; }
  59. /// <summary>
  60. /// Gets or sets the channel identifier.
  61. /// </summary>
  62. /// <value>The channel identifier.</value>
  63. public string ChannelId { get; set; }
  64. /// <summary>
  65. /// Gets or sets the recording identifier.
  66. /// </summary>
  67. /// <value>The recording identifier.</value>
  68. public string RecordingId { get; set; }
  69. /// <summary>
  70. /// Gets or sets the name of the program.
  71. /// </summary>
  72. /// <value>The name of the program.</value>
  73. public string ProgramName { get; set; }
  74. /// <summary>
  75. /// Gets or sets the clients.
  76. /// </summary>
  77. /// <value>The clients.</value>
  78. public List<string> Clients { get; set; }
  79. public LiveTvTunerInfo()
  80. {
  81. Clients = new List<string>();
  82. }
  83. }
  84. }