mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
704 B
24 lines
704 B
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}"; |
|
} |
|
}
|
|
|