LiveTvServiceInfo.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. using System;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Model.LiveTv
  4. {
  5. /// <summary>
  6. /// Class ServiceInfo
  7. /// </summary>
  8. public class LiveTvServiceInfo
  9. {
  10. /// <summary>
  11. /// Gets or sets the name.
  12. /// </summary>
  13. /// <value>The name.</value>
  14. public string Name { get; set; }
  15. /// <summary>
  16. /// Gets or sets the home page URL.
  17. /// </summary>
  18. /// <value>The home page URL.</value>
  19. public string HomePageUrl { get; set; }
  20. /// <summary>
  21. /// Gets or sets the status.
  22. /// </summary>
  23. /// <value>The status.</value>
  24. public LiveTvServiceStatus Status { get; set; }
  25. /// <summary>
  26. /// Gets or sets the status message.
  27. /// </summary>
  28. /// <value>The status message.</value>
  29. public string StatusMessage { get; set; }
  30. /// <summary>
  31. /// Gets or sets the version.
  32. /// </summary>
  33. /// <value>The version.</value>
  34. public string Version { get; set; }
  35. /// <summary>
  36. /// Gets or sets a value indicating whether this instance has update available.
  37. /// </summary>
  38. /// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
  39. public bool HasUpdateAvailable { get; set; }
  40. }
  41. public class GuideInfo
  42. {
  43. /// <summary>
  44. /// Gets or sets the start date.
  45. /// </summary>
  46. /// <value>The start date.</value>
  47. public DateTime StartDate { get; set; }
  48. /// <summary>
  49. /// Gets or sets the end date.
  50. /// </summary>
  51. /// <value>The end date.</value>
  52. public DateTime EndDate { get; set; }
  53. }
  54. public class LiveTvInfo
  55. {
  56. /// <summary>
  57. /// Gets or sets the services.
  58. /// </summary>
  59. /// <value>The services.</value>
  60. public List<LiveTvServiceInfo> Services { get; set; }
  61. /// <summary>
  62. /// Gets or sets the name of the active service.
  63. /// </summary>
  64. /// <value>The name of the active service.</value>
  65. public string ActiveServiceName { get; set; }
  66. /// <summary>
  67. /// Gets or sets a value indicating whether this instance is enabled.
  68. /// </summary>
  69. /// <value><c>true</c> if this instance is enabled; otherwise, <c>false</c>.</value>
  70. public bool IsEnabled { get; set; }
  71. /// <summary>
  72. /// Gets or sets the status.
  73. /// </summary>
  74. /// <value>The status.</value>
  75. public LiveTvServiceStatus Status { get; set; }
  76. /// <summary>
  77. /// Gets or sets the status message.
  78. /// </summary>
  79. /// <value>The status message.</value>
  80. public string StatusMessage { get; set; }
  81. public LiveTvInfo()
  82. {
  83. Services = new List<LiveTvServiceInfo>();
  84. }
  85. }
  86. public enum LiveTvServiceStatus
  87. {
  88. Ok = 0,
  89. Unavailable = 1
  90. }
  91. public enum LiveTvTunerStatus
  92. {
  93. Available = 0,
  94. Disabled = 1,
  95. RecordingTv = 2,
  96. LiveTv = 3
  97. }
  98. }