Initial commit

This commit is contained in:
Jason Dove
2021-02-08 21:13:53 -06:00
commit 4d52e115b5
493 changed files with 31399 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
using System.Diagnostics.CodeAnalysis;
using ErsatzTV.Core.Domain;
namespace ErsatzTV.Core.Hdhr
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public class LineupItem
{
private readonly Channel _channel;
private readonly string _host;
private readonly string _scheme;
public LineupItem(string scheme, string host, Channel channel)
{
_scheme = scheme;
_host = host;
_channel = channel;
}
public string GuideNumber => _channel.Number.ToString();
public string GuideName => _channel.Name;
public string URL => $"{_scheme}://{_host}/iptv/channel/{_channel.Number}";
}
}