HamBook – Blame information for rev 46

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