author | StephaneLenclud |
Sat, 16 May 2015 01:31:32 +0200 | |
changeset 5 | 29ccfbf98e54 |
parent 1 | f203331a8f4a |
permissions | -rw-r--r-- |
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@3 | 66 |
////// |
StephaneLenclud@3 | 67 |
public void Copy(Channel aChannel) |
StephaneLenclud@3 | 68 |
{ |
StephaneLenclud@3 | 69 |
PropertyInfo[] properties = typeof(Channel).GetProperties(); |
StephaneLenclud@3 | 70 |
foreach (PropertyInfo property in properties) |
StephaneLenclud@3 | 71 |
{ |
StephaneLenclud@3 | 72 |
object value = property.GetValue(aChannel); |
StephaneLenclud@3 | 73 |
property.SetValue(this,value); |
StephaneLenclud@3 | 74 |
} |
StephaneLenclud@3 | 75 |
} |
StephaneLenclud@3 | 76 |
|
StephaneLenclud@0 | 77 |
////// |
StephaneLenclud@0 | 78 |
public override string ToString() |
StephaneLenclud@0 | 79 |
{ |
StephaneLenclud@1 | 80 |
string res = "============[Channel]============\n"; |
StephaneLenclud@0 | 81 |
PropertyInfo[] properties = typeof(Channel).GetProperties(); |
StephaneLenclud@0 | 82 |
foreach (PropertyInfo property in properties) |
StephaneLenclud@0 | 83 |
{ |
StephaneLenclud@0 | 84 |
object value = property.GetValue(this); |
StephaneLenclud@0 | 85 |
if (value is string) |
StephaneLenclud@0 | 86 |
{ |
StephaneLenclud@0 | 87 |
res += property.Name + ": " + value + "\n"; |
StephaneLenclud@0 | 88 |
} |
StephaneLenclud@0 | 89 |
} |
StephaneLenclud@0 | 90 |
|
StephaneLenclud@0 | 91 |
return res; |
StephaneLenclud@0 | 92 |
} |
StephaneLenclud@0 | 93 |
} |
StephaneLenclud@0 | 94 |
} |