orbotix.robot.base
Class SleepResponse

java.lang.Object
  extended by orbotix.robot.base.DeviceMessage
      extended by orbotix.robot.base.DeviceResponse
          extended by orbotix.robot.base.SleepResponse
All Implemented Interfaces:
android.os.Parcelable

public class SleepResponse
extends DeviceResponse

Class that encapsulates a response for a SleepCommand.


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
android.os.Parcelable.Creator
 
Field Summary
static android.os.Parcelable.Creator CREATOR
           
 
Fields inherited from class orbotix.robot.base.DeviceResponse
RESPONSE_CODE_ERROR_BAD_COMMAND, RESPONSE_CODE_ERROR_BAD_MESSAGE, RESPONSE_CODE_ERROR_CHECKSUM, RESPONSE_CODE_ERROR_EXECUTE, RESPONSE_CODE_ERROR_FRAGMENT, RESPONSE_CODE_ERROR_GENERAL, RESPONSE_CODE_ERROR_PARAMETER, RESPONSE_CODE_ERROR_TIME_OUT, RESPONSE_CODE_ERROR_UNSUPPORTED, RESPONSE_CODE_MAIN_APP_CORRUPT, RESPONSE_CODE_OK
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
SleepResponse(DeviceCommand command, byte code, byte[] data)
          Class to encapsulate a response to a SleepCommmand.
 
Method Summary
 int describeContents()
           
 
Methods inherited from class orbotix.robot.base.DeviceResponse
getCode, getIsDataCorrupt, writeToParcel
 
Methods inherited from class orbotix.robot.base.DeviceMessage
getTimeStamp
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATOR

public static final android.os.Parcelable.Creator CREATOR
Constructor Detail

SleepResponse

public SleepResponse(DeviceCommand command,
                     byte code,
                     byte[] data)
Class to encapsulate a response to a SleepCommmand.

Parameters:
command - The original command for the response.
code - The response code returned by the robot.
data - The data returned with the response, which should be null for a sleep command.
Method Detail

describeContents

public int describeContents()