* fix validation in new form layout * pin mediatr to last oss version * update dependencies * cleanup code in core * cleanup code in ffmpeg * cleanup code in infra * cleanup code in scanner * cleanup code in application * cleanup main code * cleanup test code * solution-wide code cleanup
32 lines
1016 B
C#
32 lines
1016 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace ErsatzTV.Core.Hdhr;
|
|
|
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
|
[SuppressMessage("Performance", "CA1822:Mark members as static")]
|
|
public class Discover
|
|
{
|
|
private readonly Guid _UUID;
|
|
private readonly string _host;
|
|
private readonly string _scheme;
|
|
|
|
public Discover(string scheme, string host, int tunerCount, Guid uuid)
|
|
{
|
|
_scheme = scheme;
|
|
_host = host;
|
|
TunerCount = tunerCount;
|
|
_UUID = uuid;
|
|
}
|
|
|
|
public string DeviceAuth => "";
|
|
public string DeviceID => _UUID.ToString();
|
|
public string FirmwareName => "hdhomeruntc_atsc";
|
|
public string FirmwareVersion => "20190621";
|
|
public string FriendlyName => "ErsatzTV";
|
|
public string LineupURL => $"{_scheme}://{_host}/lineup.json";
|
|
public string Manufacturer => "ErsatzTV";
|
|
public string ManufacturerURL => "https://github.com/ErsatzTV/ErsatzTV";
|
|
public string ModelNumber => "HDTC-2US";
|
|
public int TunerCount { get; }
|
|
}
|