Class Result
- java.lang.Object
-
- com.zentri.zentri_ble_command.Result
public class Result
extends java.lang.Object
Field Summary
Modifier and Type | Field and Description |
---|---|
static int |
BAD_ARGS |
static int |
BUFFER_OVERFLOW |
static int |
FAILED |
static int |
INCOMPLETE_RESPONSE |
static int |
PARSE_ERROR |
static int |
SUCCESS |
static int |
TOO_FEW_ARGS |
static int |
TOO_MANY_ARGS |
static int |
UNKNOWN_COMMAND |
static int |
UNKNOWN_OPTION |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getData() |
int |
getResponseCode() |
void |
setData(java.lang.String data) |
void |
setResponseCode(int responseCode) |
Field Detail
-
SUCCESS
public static final int SUCCESS
- See Also:
- Constant Field Values
-
FAILED
public static final int FAILED
- See Also:
- Constant Field Values
-
PARSE_ERROR
public static final int PARSE_ERROR
- See Also:
- Constant Field Values
-
UNKNOWN_COMMAND
public static final int UNKNOWN_COMMAND
- See Also:
- Constant Field Values
-
TOO_FEW_ARGS
public static final int TOO_FEW_ARGS
- See Also:
- Constant Field Values
-
TOO_MANY_ARGS
public static final int TOO_MANY_ARGS
- See Also:
- Constant Field Values
-
UNKNOWN_OPTION
public static final int UNKNOWN_OPTION
- See Also:
- Constant Field Values
-
BAD_ARGS
public static final int BAD_ARGS
- See Also:
- Constant Field Values
-
BUFFER_OVERFLOW
public static final int BUFFER_OVERFLOW
- See Also:
- Constant Field Values
-
INCOMPLETE_RESPONSE
public static final int INCOMPLETE_RESPONSE
- See Also:
- Constant Field Values
Method Detail
-
getResponseCode
public int getResponseCode()
-
setResponseCode
public void setResponseCode(int responseCode)
-
getData
public java.lang.String getData()
-
setData
public void setData(java.lang.String data)