HamBook – Blame information for rev 16

Subversion Repositories:
Rev:
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 {
12 public string CurrentLocation { get; set; }
13  
14 public int Frequency { get; set; }
15  
16 public ClarifierDirection ClarifierDirection { get; set; }
17  
18 public int ClarifierOffset { get; set; }
19  
20 public bool Clar { get; set; }
21  
22 public MemoryRadioMode MemoryRadioMode { get; set; }
23  
24 public CtcssMode CtcssMode { get; set; }
25  
26 public RadioPhase Phase { get; set; }
27  
28 public bool Tag { get; set; }
29  
30 public string Text { get; set; }
31  
16 office 32 public MemoryChannel()
33 {
34 }
35  
36 public MemoryChannel(MemoryChannel memoryChannel)
37 {
38 CurrentLocation = memoryChannel.CurrentLocation;
39 Frequency = memoryChannel.Frequency;
40 ClarifierDirection= memoryChannel.ClarifierDirection;
41 Clar = memoryChannel.Clar;
42 MemoryRadioMode = memoryChannel.MemoryRadioMode;
43 CtcssMode = memoryChannel.CtcssMode;
44 Phase = memoryChannel.Phase;
45 Tag = memoryChannel.Tag;
46 Text = memoryChannel.Text;
47 }
48  
15 office 49 public bool Equals(MemoryChannel other)
50 {
51 return CurrentLocation == other.CurrentLocation &&
52 Frequency == other.Frequency &&
53 ClarifierDirection.Direction == other.ClarifierDirection.Direction &&
54 ClarifierOffset == other.ClarifierOffset &&
55 Clar == other.Clar &&
56 MemoryRadioMode.Mode == other.MemoryRadioMode.Mode &&
57 CtcssMode.Mode == other.CtcssMode.Mode &&
58 Phase.Phase == other.Phase.Phase &&
59 Tag == other.Tag &&
60 Text == other.Text;
61 }
62 }
63 }