LiveTvOptions.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System.Collections.Generic;
  2. namespace MediaBrowser.Model.LiveTv
  3. {
  4. public class LiveTvOptions
  5. {
  6. public int? GuideDays { get; set; }
  7. public bool EnableMovieProviders { get; set; }
  8. public string RecordingPath { get; set; }
  9. public bool EnableAutoOrganize { get; set; }
  10. public bool EnableRecordingEncoding { get; set; }
  11. public List<TunerHostInfo> TunerHosts { get; set; }
  12. public List<ListingsProviderInfo> ListingProviders { get; set; }
  13. public int PrePaddingSeconds { get; set; }
  14. public int PostPaddingSeconds { get; set; }
  15. public LiveTvOptions()
  16. {
  17. EnableMovieProviders = true;
  18. TunerHosts = new List<TunerHostInfo>();
  19. ListingProviders = new List<ListingsProviderInfo>();
  20. }
  21. }
  22. public class TunerHostInfo
  23. {
  24. public string Id { get; set; }
  25. public string Url { get; set; }
  26. public string Type { get; set; }
  27. public bool ImportFavoritesOnly { get; set; }
  28. public bool IsEnabled { get; set; }
  29. public TunerHostInfo()
  30. {
  31. IsEnabled = true;
  32. }
  33. }
  34. public class ListingsProviderInfo
  35. {
  36. public string Id { get; set; }
  37. public string Type { get; set; }
  38. public string Username { get; set; }
  39. public string Password { get; set; }
  40. public string ListingsId { get; set; }
  41. public string ZipCode { get; set; }
  42. public string Country { get; set; }
  43. public string Path { get; set; }
  44. public string[] EnabledTuners { get; set; }
  45. public bool EnableAllTuners { get; set; }
  46. public ListingsProviderInfo()
  47. {
  48. EnabledTuners = new string[] { };
  49. EnableAllTuners = true;
  50. }
  51. }
  52. }