HamBook – Diff between revs 11 and 15
?pathlinks?
Rev 11 | Rev 15 | |||
---|---|---|---|---|
Line 35... | Line 35... | |||
35 | if (!match.Success) |
35 | if (!match.Success) |
|
36 | { |
36 | { |
|
37 | throw new UnmatchedRadioResponseException(Name, answer); |
37 | throw new UnmatchedRadioResponseException(Name, answer); |
|
38 | } |
38 | } |
|
Line -... | Line 39... | |||
- | 39 | |
||
- | 40 | var radioBank = int.Parse(match.Result("${radioBank}")); |
||
- | 41 | var Frequency = int.Parse(match.Result("${frequency}")); |
||
- | 42 | var clarifierDirection = char.Parse(match.Result("${clarifierDirection}")); |
||
- | 43 | var clarifierOffset = int.Parse(match.Result("${clarifierOffset}")); |
||
- | 44 | var clar = int.Parse(match.Result("${clar}")) == 0 ? false : true; |
||
- | 45 | var radioMode = char.Parse(match.Result("${mode}")); |
||
- | 46 | var storage = match.Result("${storage}"); |
||
- | 47 | var ctcssMode = match.Result("${ctcssMode}"); |
||
- | 48 | var phase = match.Result("${phase}"); |
||
39 | |
49 | |
|
40 | var information = new Information |
50 | var information = new Information |
|
41 | { |
51 | { |
|
42 | RadioBank = int.Parse(match.Result("${radioBank}")), |
52 | RadioBank = radioBank, |
|
43 | Frequency = int.Parse(match.Result("${frequency}")), |
53 | Frequency = Frequency, |
|
44 | ClarifierDirection = char.Parse(match.Result("${clarifierDirection}")), |
54 | ClarifierDirection = clarifierDirection, |
|
45 | ClarifierOffset = int.Parse(match.Result("${clarifierOffset}")), |
55 | ClarifierOffset = clarifierOffset, |
|
46 | Clar = int.Parse(match.Result("${clar}")), |
56 | Clar = clar, |
|
47 | RadioMode = char.Parse(match.Result("${mode}")), |
57 | RadioMode = radioMode, |
|
48 | Storage = (RadioStorage)int.Parse(match.Result("${storage}")), |
58 | Storage = storage, |
|
49 | CtcssMode = (CtcssMode)int.Parse(match.Result("${ctcssMode}")), |
59 | CtcssMode = ctcssMode, |
|
50 | Phase = (RadioPhase)int.Parse(match.Result("${phase}")) |
60 | Phase = phase |
|
Line 51... | Line 61... | |||
51 | }; |
61 | }; |
|
52 | |
62 | |
|
53 | return information; |
63 | return information; |