HamBook – Diff between revs 11 and 54
?pathlinks?
Rev 11 | Rev 54 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | using System; |
1 | using System; |
|
2 | using System.Collections.Generic; |
- | ||
3 | using System.Linq; |
- | ||
4 | using System.Text; |
2 | using System.Text; |
|
5 | using System.Threading.Tasks; |
- | ||
Line 6... | Line 3... | |||
6 | |
3 | |
|
7 | namespace HamBook.Radios |
4 | namespace HamBook.Radios |
|
8 | { |
5 | { |
|
9 | public class UnexpectedRadioResponseException : Exception |
6 | public class UnexpectedRadioResponseException : Exception |
|
10 | { |
- | ||
11 | public string Name { get; } |
- | ||
12 | public byte[] Buffer { get; } |
- | ||
13 | |
7 | { |
|
14 | public UnexpectedRadioResponseException() : base() |
8 | public UnexpectedRadioResponseException() |
|
15 | { |
- | ||
16 | |
9 | { |
|
Line 17... | Line 10... | |||
17 | } |
10 | } |
|
18 | |
11 | |
|
19 | public UnexpectedRadioResponseException(string name, byte[] buffer) : this() |
12 | public UnexpectedRadioResponseException(string name, byte[] buffer) : this() |
|
20 | { |
13 | { |
|
- | 14 | Name = name; |
||
- | 15 | Buffer = buffer; |
||
21 | Name = name; |
16 | |
|
- | 17 | Response = Encoding.ASCII.GetString(buffer); |
||
- | 18 | } |
||
- | 19 | |
||
- | 20 | public string Name { get; } |
||
- | 21 | public byte[] Buffer { get; } |
||
22 | Buffer = buffer; |
22 | |
|
23 | } |
23 | public string Response { get; } |
|
24 | } |
24 | } |