Files
jlibwiiuse/WiiUseJ/src/wiiusej/wiiuseapirequest/IntValueRequest.java
2008-02-15 14:27:51 +00:00

56 lines
1.0 KiB
Java

package wiiusej.wiiuseapirequest;
/**
* Represents a request with an int value to pass to wiiuse API.
* @author gduche
*
*/
public class IntValueRequest extends WiiUseApiRequest {
private int intValue;
/**
* Constructor setting the id of the wiimote concerned.
*
* @param id
* the id of the wiimote concerned.
*/
public IntValueRequest(int id, int type) {
super(id, type);
}
/**
* Constructor setting the id of the wiimote concerned.
*
* @param id
* the id of the wiimote concerned.
* @param type
* type of the request
* @param th
* threshold in degrees
*/
public IntValueRequest(int id, int type, int th) {
super(id, type);
intValue = th;
}
/**
* Get the int value.
* @return the int value
*/
public int getIntValue() {
return intValue;
}
/**
* Set the int value.
* @param val the value to set
*/
public void setIntValue(int val) {
this.intValue = val;
}
}