/// <summary> /// Log all the channel mappings. /// </summary> /// <param name="logger">The logger instance to be used.</param> public void LogChannelMapping(Logger logger) { TVStation station = TVStation.FindStation(OriginalNetworkID, TransportStreamID, ServiceID); string stationName; if (station != null) stationName = station.Name; else stationName = "** No Station **"; logger.Write("Channel: ONID " + OriginalNetworkID + " TSID " + TransportStreamID + " SID " + ServiceID + " Channel ID: " + ChannelID + " User Channel: " + UserChannel + " Bouquet: " + BouquetID + " Region: " + Region + " Name: " + stationName); }
/// <summary> /// Log all the channel mappings. /// </summary> /// <param name="logger">The logger instance to be used.</param> public void LogChannelMapping(Logger logger) { TVStation station = TVStation.FindStation(OriginalNetworkID, TransportStreamID, ServiceID); string stationName; if (station != null) stationName = station.Name; else stationName = "** No Station **"; StringBuilder flagString = new StringBuilder(); if (Flags != null) { flagString.Append("0x"); foreach (byte flagByte in Flags) flagString.Append(flagByte.ToString("X").PadLeft(2, '0')); } else flagString.Append("N/A"); logger.Write("Channel: ONID " + OriginalNetworkID + " TSID " + TransportStreamID + " SID " + ServiceID + " Channel ID: " + ChannelID + " User Channel: " + UserChannel + " Bouquet: " + BouquetID + " Region: " + Region + " Flags: " + flagString + " Name: " + stationName); }