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