From 9c1b7eb82c5fd803025134fce3a4ebc634f9b05f Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Fri, 15 Feb 2008 14:27:51 +0000 Subject: [PATCH] some fixes on new version. Acceleration threshold is an int. git-svn-id: http://wiiusej.googlecode.com/svn/trunk@55 ae48ae66-6a45-0410-b38e-211266189506 --- .../wiiuseapirequest/IntValueRequest.java | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 WiiUseJ/src/wiiusej/wiiuseapirequest/IntValueRequest.java diff --git a/WiiUseJ/src/wiiusej/wiiuseapirequest/IntValueRequest.java b/WiiUseJ/src/wiiusej/wiiuseapirequest/IntValueRequest.java new file mode 100644 index 0000000..137c977 --- /dev/null +++ b/WiiUseJ/src/wiiusej/wiiuseapirequest/IntValueRequest.java @@ -0,0 +1,55 @@ +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; + } + + + +}