public override bool Parse(List <string> aAnswer) { if (base.Parse(aAnswer)) { string[] zSplit = aAnswer[0].Split(new Char[] { ':', ',' }); if (zSplit.Count() == 3) { try { RTSSignalEnabled = FlowControlCommand.EncodeValue(ushort.Parse(TrimValue(zSplit[1]))); CTSSignalEnabled = FlowControlCommand.EncodeValue(ushort.Parse(TrimValue(zSplit[2]))); return(true); } catch (Exception zException) { _logger.WarnException("Handled exception", zException); return(false); } } else { _logger.Debug("InCorrect Params Count: {0}", zSplit.Count()); return(false); } } else { return(false); } }
public FlowControlCases() { _flowControlCommand = new FlowControlCommand(); _Command = _flowControlCommand; }