HamBook – Blame information for rev 38
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
15 | office | 1 | using System; |
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Text; |
||
5 | using System.Threading.Tasks; |
||
16 | office | 6 | using System.Xml.Serialization; |
15 | office | 7 | |
8 | namespace HamBook.Radios.Generic |
||
9 | { |
||
10 | public class MemoryChannel : IEquatable<MemoryChannel> |
||
11 | { |
||
38 | office | 12 | private string _currentLocation = string.Empty; |
13 | private int _frequency = 0; |
||
14 | private ClarifierDirection _clarifierDirection = new ClarifierDirection(); |
||
15 | private int _clarifierOffset = 0; |
||
16 | private bool _clar = false; |
||
17 | private MemoryRadioMode _memoryRadioMode = new MemoryRadioMode(); |
||
18 | private CtcssMode _ctcssMode = new CtcssMode(); |
||
19 | private RadioPhase _phase = new RadioPhase(); |
||
20 | private bool _tag = false; |
||
21 | private string _text = string.Empty; |
||
15 | office | 22 | |
38 | office | 23 | public string CurrentLocation { get => _currentLocation; set => _currentLocation = value; } |
15 | office | 24 | |
38 | office | 25 | public int Frequency { get => _frequency; set => _frequency = value; } |
15 | office | 26 | |
38 | office | 27 | public ClarifierDirection ClarifierDirection { get => _clarifierDirection; set => _clarifierDirection = value; } |
15 | office | 28 | |
38 | office | 29 | public int ClarifierOffset { get => _clarifierOffset; set => _clarifierOffset = value; } |
15 | office | 30 | |
38 | office | 31 | public bool Clar { get => _clar; set => _clar = value; } |
15 | office | 32 | |
38 | office | 33 | public MemoryRadioMode MemoryRadioMode { get => _memoryRadioMode; set => _memoryRadioMode = value; } |
15 | office | 34 | |
38 | office | 35 | public CtcssMode CtcssMode { get => _ctcssMode; set => _ctcssMode = value; } |
15 | office | 36 | |
38 | office | 37 | public RadioPhase Phase { get => _phase; set => _phase = value; } |
15 | office | 38 | |
38 | office | 39 | public bool Tag { get => _tag; set => _tag = value; } |
15 | office | 40 | |
38 | office | 41 | public string Text { get => _text; set => _text = value; } |
42 | |||
43 | public MemoryChannel() |
||
44 | { |
||
16 | office | 45 | } |
46 | |||
15 | office | 47 | public bool Equals(MemoryChannel other) |
48 | { |
||
49 | return CurrentLocation == other.CurrentLocation && |
||
50 | Frequency == other.Frequency && |
||
51 | ClarifierDirection.Direction == other.ClarifierDirection.Direction && |
||
52 | ClarifierOffset == other.ClarifierOffset && |
||
53 | Clar == other.Clar && |
||
54 | MemoryRadioMode.Mode == other.MemoryRadioMode.Mode && |
||
55 | CtcssMode.Mode == other.CtcssMode.Mode && |
||
56 | Phase.Phase == other.Phase.Phase && |
||
57 | Tag == other.Tag && |
||
58 | Text == other.Text; |
||
59 | } |
||
60 | } |
||
61 | } |