// 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]) { }
// 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; }