Files
ChanSort/ChanSort.Plugin.TllFile/DtvChannel.cs
hbeham 994235e020 - complete rework of TLL and SCM loaders, removing all "unsafe" code
- fixed various issues with SCM files
2013-04-03 12:47:24 +02:00

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;
}
}
}