HamBook – Blame information for rev 54

Subversion Repositories:
Rev:
Rev Author Line No. Line
54 office 1 using System.Xml.Serialization;
2 using HamBook.Radios.Generic;
46 office 3  
4 namespace HamBook.Radios.Yaesu.FT_891
5 {
6 [Radio("Yaesu FT-891")]
7 [XmlRoot(Namespace = "Yaesu FT-891")]
8 public class MemoryChannel : Generic.MemoryChannel
9 {
54 office 10 public MemoryChannel()
11 {
12 }
13  
14 public MemoryChannel(Generic.MemoryChannel channel)
15 {
16 CurrentLocation = channel.CurrentLocation;
17 Frequency = channel.Frequency;
18 MemoryRadioMode = channel.MemoryRadioMode;
19 Tag = channel.Tag;
20 Text = channel.Text;
21 }
22  
46 office 23 public ClarifierDirection ClarifierDirection { get; set; } = new ClarifierDirection(ShiftDirection.PLUS_SHIFT);
24  
54 office 25 public int ClarifierOffset { get; set; }
46 office 26  
54 office 27 public bool Clar { get; set; }
46 office 28  
29 public Ctcss Ctcss { get; set; } = new Ctcss(CtcssMode.Off);
30  
31 public Phase Phase { get; set; } = new Phase(PhaseMode.Simplex);
32  
33 public override string CurrentLocation { get; set; } = string.Empty;
34  
54 office 35 public override int Frequency { get; set; }
46 office 36  
37 public override Generic.MemoryRadioMode MemoryRadioMode { get; set; }
38  
54 office 39 public override bool Tag { get; set; }
46 office 40  
41 public override string Text { get; set; } = string.Empty;
42  
43 public override bool Equals(Generic.MemoryChannel other)
44 {
45 return CurrentLocation == other.CurrentLocation &&
54 office 46 Frequency == other.Frequency &&
47 MemoryRadioMode.Code == other.MemoryRadioMode.Code &&
48 Tag == other.Tag &&
49 Text == other.Text;
46 office 50 }
51 }
54 office 52 }