コード例 #1
0
        public FourByFourReception(string command, int dataSize, byte[] rawData)
        {
            Command  = command;
            DataSize = dataSize;
            RawData  = rawData;

            if (dataSize == 1 && rawData[0] == 0x30)
            {
                State = ReceptionState.Error;
            }
            else if (dataSize == 1 && rawData[0] == 0x31)
            {
                State = ReceptionState.Success;
            }
        }
コード例 #2
0
 public StatusReception(string command, ReceptionState state)
     : base(command, 0, null)
 {
     State = state;
 }