Ejemplo n.º 1
0
 // Constructor with specified parameters, default response identier to the same as the command string
 public SpectraCyberRequest(
     SpectraCyberCommandTypeEnum commandType,
     string commandString,
     bool waitForReply,
     int charsToRead)
     : this(commandType, commandString, waitForReply, charsToRead, commandString[1])
 {
 }
Ejemplo n.º 2
0
 // Constructor with specified parameters
 public SpectraCyberRequest(
     SpectraCyberCommandTypeEnum commandType,
     string commandString,
     bool waitForReply,
     int charsToRead,
     char responseIdentifier)
 {
     CommandType        = commandType;
     Priority           = CalcPriority();
     CommandString      = commandString;
     WaitForReply       = waitForReply;
     CharsToRead        = (charsToRead <= 0) ? AbstractSpectraCyberConstants.BUFFER_SIZE : charsToRead;
     ResponseIdentifier = responseIdentifier;
 }