StephaneLenclud@0: using System; StephaneLenclud@0: using System.Collections.Generic; StephaneLenclud@0: using System.Linq; StephaneLenclud@0: using System.Reflection; StephaneLenclud@0: using System.Runtime.CompilerServices; StephaneLenclud@0: using System.Text; StephaneLenclud@0: using System.Threading.Tasks; StephaneLenclud@0: StephaneLenclud@0: namespace SatChanGen StephaneLenclud@0: { StephaneLenclud@0: class Channel StephaneLenclud@0: { StephaneLenclud@1: //Sky Atlantic HD StephaneLenclud@1: public string Name { get; set; } StephaneLenclud@1: //------------------------------------------------------ StephaneLenclud@0: //19.2E StephaneLenclud@0: public string OrbitalPosition { get; set; } StephaneLenclud@0: //Astra 1M StephaneLenclud@0: public string Satellite { get; set; } StephaneLenclud@0: //10773.25 StephaneLenclud@0: public string Frequency { get; set; } StephaneLenclud@0: //Horizontal/Vertical StephaneLenclud@0: public string Polarisation { get; set; } StephaneLenclud@0: //53 StephaneLenclud@0: public string Transponder { get; set; } StephaneLenclud@0: //Astra 1M StephaneLenclud@0: public string Beam { get; set; } StephaneLenclud@0: //DVB-S2 StephaneLenclud@0: public string Standard { get; set; } StephaneLenclud@0: //8PSK StephaneLenclud@0: public string Modulation { get; set; } StephaneLenclud@0: //22000 StephaneLenclud@0: public string SymbolRate { get; set; } StephaneLenclud@0: //3/4 StephaneLenclud@0: public string FEC { get; set; } StephaneLenclud@0: //ASTRA 1 StephaneLenclud@0: public string Provider { get; set; } StephaneLenclud@0: //47.9 Mbps StephaneLenclud@0: public string Bitrate { get; set; } StephaneLenclud@0: //1 StephaneLenclud@0: public string NetworkID { get; set; } StephaneLenclud@0: //1053 StephaneLenclud@0: public string TransponderID { get; set; } StephaneLenclud@0: //------------------------------------------------------ StephaneLenclud@0: //Germany StephaneLenclud@0: public string Country { get; set; } StephaneLenclud@0: //Entertainment StephaneLenclud@0: public string Category { get; set; } StephaneLenclud@0: //Sky Deutschland StephaneLenclud@0: public string Packages { get; set; } StephaneLenclud@0: // StephaneLenclud@0: public string Encryption { get; set; } StephaneLenclud@0: // StephaneLenclud@0: public string SID { get; set; } StephaneLenclud@0: // StephaneLenclud@0: public string VPID { get; set; } StephaneLenclud@0: // StephaneLenclud@0: public string Audio { get; set; } StephaneLenclud@0: // StephaneLenclud@0: public string PMT { get; set; } StephaneLenclud@0: // StephaneLenclud@0: public string PCR { get; set; } StephaneLenclud@0: // StephaneLenclud@0: public string TXT { get; set; } StephaneLenclud@0: StephaneLenclud@0: ////// StephaneLenclud@0: public override string ToString() StephaneLenclud@0: { StephaneLenclud@1: string res = "============[Channel]============\n"; StephaneLenclud@0: PropertyInfo[] properties = typeof(Channel).GetProperties(); StephaneLenclud@0: foreach (PropertyInfo property in properties) StephaneLenclud@0: { StephaneLenclud@0: object value = property.GetValue(this); StephaneLenclud@0: if (value is string) StephaneLenclud@0: { StephaneLenclud@0: res += property.Name + ": " + value + "\n"; StephaneLenclud@0: } StephaneLenclud@0: } StephaneLenclud@0: StephaneLenclud@0: return res; StephaneLenclud@0: } StephaneLenclud@0: } StephaneLenclud@0: }