DiscoverResponse.cs 927 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #nullable disable
  2. using System;
  3. namespace Emby.Server.Implementations.LiveTv.TunerHosts.HdHomerun
  4. {
  5. internal class DiscoverResponse
  6. {
  7. public string FriendlyName { get; set; }
  8. public string ModelNumber { get; set; }
  9. public string FirmwareName { get; set; }
  10. public string FirmwareVersion { get; set; }
  11. public string DeviceID { get; set; }
  12. public string DeviceAuth { get; set; }
  13. public string BaseURL { get; set; }
  14. public string LineupURL { get; set; }
  15. public int TunerCount { get; set; }
  16. public bool SupportsTranscoding
  17. {
  18. get
  19. {
  20. var model = ModelNumber ?? string.Empty;
  21. if (model.Contains("hdtc", StringComparison.OrdinalIgnoreCase))
  22. {
  23. return true;
  24. }
  25. return false;
  26. }
  27. }
  28. }
  29. }