LiveTvOptions.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 string DeviceId { get; set; }
  28. public bool ImportFavoritesOnly { get; set; }
  29. public bool AllowHWTranscoding { get; set; }
  30. public bool IsEnabled { get; set; }
  31. public string M3UUrl { get; set; }
  32. public string InfoUrl { get; set; }
  33. public string FriendlyName { get; set; }
  34. public int Tuners { get; set; }
  35. public string DiseqC { get; set; }
  36. public string SourceA { get; set; }
  37. public string SourceB { get; set; }
  38. public string SourceC { get; set; }
  39. public string SourceD { get; set; }
  40. public int DataVersion { get; set; }
  41. public TunerHostInfo()
  42. {
  43. IsEnabled = true;
  44. AllowHWTranscoding = true;
  45. }
  46. }
  47. public class ListingsProviderInfo
  48. {
  49. public string Id { get; set; }
  50. public string Type { get; set; }
  51. public string Username { get; set; }
  52. public string Password { get; set; }
  53. public string ListingsId { get; set; }
  54. public string ZipCode { get; set; }
  55. public string Country { get; set; }
  56. public string Path { get; set; }
  57. public string[] EnabledTuners { get; set; }
  58. public bool EnableAllTuners { get; set; }
  59. public ListingsProviderInfo()
  60. {
  61. EnabledTuners = new string[] { };
  62. EnableAllTuners = true;
  63. }
  64. }
  65. }