mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-14 19:32:04 +01:00
25 lines
633 B
C#
25 lines
633 B
C#
using ChanSort.Api;
|
|
|
|
namespace ChanSort.Loader.TllFile
|
|
{
|
|
public class DtvChannel : TllChannelBase
|
|
{
|
|
private const string _ChannelOrTransponder = "offChannelTransponder";
|
|
private const string _FrequencyLong = "offFrequencyLong";
|
|
|
|
/*
|
|
offFavorites2 = 134
|
|
offAudioPid2 = 182
|
|
*/
|
|
|
|
public DtvChannel(int slot, DataMapping data) : base(data)
|
|
{
|
|
this.InitCommonData(slot, SignalSource.DvbCT, data);
|
|
this.InitDvbData(data);
|
|
|
|
this.ChannelOrTransponder = data.GetByte(_ChannelOrTransponder).ToString("d2");
|
|
this.FreqInMhz = (decimal)data.GetDword(_FrequencyLong) / 1000;
|
|
}
|
|
}
|
|
}
|