public ProcessResponse ( |
||
response | ||
리턴 | 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]);
}
}