wiiusej.wiiuseapirequest
Class WiiUseApiRequest

java.lang.Object
  extended by wiiusej.wiiuseapirequest.WiiUseApiRequest
Direct Known Subclasses:
FloatValueRequest, IntValueRequest, LedsRequest

public class WiiUseApiRequest
extends java.lang.Object

Represents a request we could do to the WiiUse API.

Author:
guiguito

Field Summary
private  int requestType
           
private  int wiimoteId
           
static int WIIUSE_ACCEL_THRESHOLHD_REQUEST
           
static int WIIUSE_ACTIVATE_CONTINUOUS_REQUEST
           
static int WIIUSE_ACTIVATE_IR_TRACKING_REQUEST
           
static int WIIUSE_ACTIVATE_MOTION_SENSING_REQUEST
           
static int WIIUSE_ACTIVATE_RUMBLE_REQUEST
           
static int WIIUSE_ACTIVATE_SMOOTHING_REQUEST
           
static int WIIUSE_ALPHA_SMOOTHING_REQUEST
           
static int WIIUSE_ASPECT_RATIO_16_9
           
static int WIIUSE_ASPECT_RATIO_4_3
           
static int WIIUSE_CLOSE_CONNECTION_REQUEST
           
static int WIIUSE_DEACTIVATE_CONTINUOUS_REQUEST
           
static int WIIUSE_DEACTIVATE_IR_TRACKING_REQUEST
           
static int WIIUSE_DEACTIVATE_MOTION_SENSING_REQUEST
           
static int WIIUSE_DEACTIVATE_RUMBLE_REQUEST
           
static int WIIUSE_DEACTIVATE_SMOOTHING_REQUEST
           
static int WIIUSE_LEDS_REQUEST
           
static int WIIUSE_ORIENT_THRESHOLHD_REQUEST
           
static int WIIUSE_RESYNC
           
static int WIIUSE_SENSOR_BAR_ABOVE
           
static int WIIUSE_SENSOR_BAR_BELOW
           
static int WIIUSE_SET_VIRTUAL_RESOLUTION
           
static int WIIUSE_STATUS_REQUEST
           
 
Constructor Summary
WiiUseApiRequest(int id)
          Constructor setting the id of the wiimote concerned.
WiiUseApiRequest(int id, int type)
          Constructor setting the id of the wiimote concerned.
 
Method Summary
 int getId()
          Get id of the wiimote concerned by this request.
 int getRequestType()
          Get the request type.
 void setId(int id)
          Set id of the wiimote concerned by this request.
 void setRequestType(int requestType)
          Set the request type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIIUSE_STATUS_REQUEST

public static int WIIUSE_STATUS_REQUEST

WIIUSE_ACTIVATE_SMOOTHING_REQUEST

public static int WIIUSE_ACTIVATE_SMOOTHING_REQUEST

WIIUSE_DEACTIVATE_SMOOTHING_REQUEST

public static int WIIUSE_DEACTIVATE_SMOOTHING_REQUEST

WIIUSE_ACTIVATE_IR_TRACKING_REQUEST

public static int WIIUSE_ACTIVATE_IR_TRACKING_REQUEST

WIIUSE_DEACTIVATE_IR_TRACKING_REQUEST

public static int WIIUSE_DEACTIVATE_IR_TRACKING_REQUEST

WIIUSE_ACTIVATE_MOTION_SENSING_REQUEST

public static int WIIUSE_ACTIVATE_MOTION_SENSING_REQUEST

WIIUSE_DEACTIVATE_MOTION_SENSING_REQUEST

public static int WIIUSE_DEACTIVATE_MOTION_SENSING_REQUEST

WIIUSE_CLOSE_CONNECTION_REQUEST

public static int WIIUSE_CLOSE_CONNECTION_REQUEST

WIIUSE_ACTIVATE_CONTINUOUS_REQUEST

public static int WIIUSE_ACTIVATE_CONTINUOUS_REQUEST

WIIUSE_DEACTIVATE_CONTINUOUS_REQUEST

public static int WIIUSE_DEACTIVATE_CONTINUOUS_REQUEST

WIIUSE_ACTIVATE_RUMBLE_REQUEST

public static int WIIUSE_ACTIVATE_RUMBLE_REQUEST

WIIUSE_DEACTIVATE_RUMBLE_REQUEST

public static int WIIUSE_DEACTIVATE_RUMBLE_REQUEST

WIIUSE_LEDS_REQUEST

public static int WIIUSE_LEDS_REQUEST

WIIUSE_ORIENT_THRESHOLHD_REQUEST

public static int WIIUSE_ORIENT_THRESHOLHD_REQUEST

WIIUSE_ACCEL_THRESHOLHD_REQUEST

public static int WIIUSE_ACCEL_THRESHOLHD_REQUEST

WIIUSE_ALPHA_SMOOTHING_REQUEST

public static int WIIUSE_ALPHA_SMOOTHING_REQUEST

WIIUSE_RESYNC

public static int WIIUSE_RESYNC

WIIUSE_ASPECT_RATIO_4_3

public static int WIIUSE_ASPECT_RATIO_4_3

WIIUSE_ASPECT_RATIO_16_9

public static int WIIUSE_ASPECT_RATIO_16_9

WIIUSE_SENSOR_BAR_ABOVE

public static int WIIUSE_SENSOR_BAR_ABOVE

WIIUSE_SENSOR_BAR_BELOW

public static int WIIUSE_SENSOR_BAR_BELOW

WIIUSE_SET_VIRTUAL_RESOLUTION

public static int WIIUSE_SET_VIRTUAL_RESOLUTION

wiimoteId

private int wiimoteId

requestType

private int requestType
Constructor Detail

WiiUseApiRequest

public WiiUseApiRequest(int id)
Constructor setting the id of the wiimote concerned.

Parameters:
id - the id of the wiimote concerned.

WiiUseApiRequest

public WiiUseApiRequest(int id,
                        int type)
Constructor setting the id of the wiimote concerned.

Parameters:
id - the id of the wiimote concerned.
Method Detail

getId

public int getId()
Get id of the wiimote concerned by this request.

Returns:
id of the wiimote concerned

setId

public void setId(int id)
Set id of the wiimote concerned by this request.

Parameters:
id - id fh the wiimote concernet

getRequestType

public int getRequestType()
Get the request type.

Returns:
the requestType

setRequestType

public void setRequestType(int requestType)
Set the request type.

Parameters:
requestType - the requestType to set