Exemple #1
0
        internal Message Unpack(RawMessage input)
        {
            Message output;

            switch (input.Id)
            {
            case DebugMessage.Id:
                output = new DebugMessage(input.RawData);
                break;

            case GeneralStatusMessage.Id:
                output = new GeneralStatusMessage(input.RawData);
                break;

            case ConfigurationStatusMessage.Id:
                output = new ConfigurationStatusMessage(input.RawData);
                break;

            default:
                throw new NotImplementedException();
            }

            return(output);
        }
Exemple #2
0
        private void SimulateConfigurationStatusMessage()
        {
            var message = new ConfigurationStatusMessage();

            SimulateMessage(ConfigurationStatusMessage.Id, message);
        }