Channel.cs
author StephaneLenclud
Thu, 14 May 2015 22:43:17 +0200
changeset 0 1d4344872495
child 1 f203331a8f4a
permissions -rw-r--r--
First drop.
Basic Sky Deutschland package frequency parssing.
     1 using System;
     2 using System.Collections.Generic;
     3 using System.Linq;
     4 using System.Reflection;
     5 using System.Runtime.CompilerServices;
     6 using System.Text;
     7 using System.Threading.Tasks;
     8 
     9 namespace SatChanGen
    10 {
    11 	class Channel
    12 	{
    13 		//19.2E
    14 		public string OrbitalPosition { get; set; }
    15 		//Astra 1M
    16 		public string Satellite { get; set; }
    17 		//10773.25
    18 		public string Frequency { get; set; }
    19 		//Horizontal/Vertical
    20 		public string Polarisation { get; set; }
    21 		//53
    22 		public string Transponder { get; set; }
    23 		//Astra 1M
    24 		public string Beam { get; set; }
    25 		//DVB-S2
    26 		public string Standard { get; set; }
    27 		//8PSK
    28 		public string Modulation { get; set; }
    29 		//22000
    30 		public string SymbolRate { get; set; }
    31 		//3/4
    32 		public string FEC { get; set; }
    33 		//ASTRA 1
    34 		public string Provider { get; set; }
    35 		//47.9 Mbps
    36 		public string Bitrate { get; set; }
    37 		//1
    38 		public string NetworkID { get; set; }
    39 		//1053
    40 		public string TransponderID { get; set; }
    41 		//------------------------------------------------------
    42 		//Sky Atlantic HD
    43 		public string Name { get; set; }
    44 		//Germany
    45 		public string Country { get; set; }
    46 		//Entertainment
    47 		public string Category { get; set; }
    48 		//Sky Deutschland
    49 		public string Packages { get; set; }
    50 		//
    51 		public string Encryption { get; set; }
    52 		//
    53 		public string SID { get; set; }
    54 		//
    55 		public string VPID { get; set; }
    56 		//
    57 		public string Audio { get; set; }
    58 		//
    59 		public string PMT { get; set; }
    60 		//
    61 		public string PCR { get; set; }
    62 		//
    63 		public string TXT { get; set; }
    64 
    65 		//////
    66 		public override string ToString()
    67 		{
    68 			string res = "";
    69 			PropertyInfo[] properties = typeof(Channel).GetProperties();
    70 			foreach (PropertyInfo property in properties)
    71 			{
    72 				object value = property.GetValue(this);
    73 				if (value is string)
    74 				{
    75 					res += property.Name + ": " + value + "\n";
    76 				}
    77 			}
    78 
    79 			return res;
    80 		}
    81 	}
    82 }