Cirrious.MvvmCross.Plugins.Sphero.Commands.GetColorLedCommand.ProcessResponse C# (CSharp) Method

ProcessResponse() public method

public ProcessResponse ( SpheroResponse response ) : ISpheroMessage
response Cirrious.MvvmCross.Plugins.Sphero.Messages.SpheroResponse
return ISpheroMessage
        public override ISpheroMessage ProcessResponse(SpheroResponse response)
        {
            if (response.Payload.Count != 3)
            {
                // TODO - report error...
                return null;
            }

            return new ColorMessage(response.Payload[0], response.Payload[1], response.Payload[2]);
        }
    }