Initial commit
This commit is contained in:
@@ -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}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user