Пример #1
0
        protected BaseATParser(byte[] delimitorSequence)
        {
            this.simpleResponseRegex = new Regex(@"\r\n(OK|ERROR)\r\n");

            this.frameParsers = new Hashtable();
            this.unsolicitedFrameParsers = new ArrayList();
            this.delimitorSequence = delimitorSequence;
            this.delimitorSequenceLength = this.delimitorSequence.Length;
        }
Пример #2
0
 protected void AddRegexFrameParser(string command, ATCommandType commandType, Regex regex, int regexParametersGroup, int regexResultGroup)
 {
     this.AddFrameParser(new RegexATFrameParser()
     {
         Command = command,
         CommandType = commandType,
         Regex = regex,
         RegexParametersGroup = regexParametersGroup,
         RegexResultGroup = regexResultGroup
     });
 }