HamBook – Diff between revs 7 and 9

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 7 Rev 9
Line 1... Line 1...
1 using System; 1 using System;
2 using System.Collections.Generic; 2 using System.Collections.Generic;
3 using System.IO.Ports; 3 using System.IO.Ports;
4 using System.Linq; 4 using System.Linq;
5 using System.Text; 5 using System.Text;
-   6 using System.Threading;
6 using System.Threading.Tasks; 7 using System.Threading.Tasks;
-   8 using RJCP.IO.Ports;
Line 7... Line 9...
7   9  
8 namespace HamBook.Radios.Generic.CAT 10 namespace HamBook.Radios.Generic.CAT
9 { 11 {
10 public abstract class MD : Cat 12 public abstract class MD : Cat
11 { 13 {
Line 12... Line 14...
12 public override string Name => "MD"; 14 public override string Name => "MD";
Line 13... Line 15...
13   15  
14 public override string Definition => "OPERATING MODE"; 16 public override string Definition => "OPERATING MODE";
15   17  
Line 16... Line 18...
16 public MD(SerialPort serialPort) : base(serialPort) 18 public MD(SerialPortStream serialPort) : base(serialPort)
-   19 {
-   20 }
Line 17... Line 21...
17 { 21  
-   22 public abstract bool Set(RadioMode radioMode);
-   23  
18 } 24 public abstract Task<bool> SetAsync(RadioMode radioMode, CancellationToken cancellationToken);
19   25