public enum ResponseCode extends java.lang.Enum<ResponseCode>
ChannelResponseMessage
can contain.Enum Constant and Description |
---|
CHANNEL_ID_NOT_SET
returned on attempt to open a channel without setting the channel ID
|
CHANNEL_IN_WRONG_STATE
returned on attempt to perform an action from the wrong channel state
|
CHANNEL_NOT_OPENED
returned on attempt to communicate on a channel that is not open
|
INVALID_LIST_ID
returned when the provided list ID or size exceeds the limit
|
INVALID_MESSAGE
returned when the message has an invalid parameter
|
INVALID_PARAMETER_PROVIDED
returned when an invalid parameter is specified in a configuration message
|
MESSAGE_SIZE_EXCEEDS_LIMIT
returned if a data message is provided that is too large
|
RESPONSE_NO_ERROR
Returned to indicate success.
|
UNKNOWN
The value sent from the ANT Radio Service is not defined in this version
of the API
|
Modifier and Type | Method and Description |
---|---|
static ResponseCode |
create(int rawValue)
Creates the ResponseCode from the raw value.
|
int |
getRawValue()
Gets the raw value of this ResponseCode.
|
static ResponseCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseCode RESPONSE_NO_ERROR
public static final ResponseCode CHANNEL_IN_WRONG_STATE
public static final ResponseCode CHANNEL_NOT_OPENED
public static final ResponseCode CHANNEL_ID_NOT_SET
public static final ResponseCode MESSAGE_SIZE_EXCEEDS_LIMIT
public static final ResponseCode INVALID_MESSAGE
public static final ResponseCode INVALID_LIST_ID
public static final ResponseCode INVALID_PARAMETER_PROVIDED
public static final ResponseCode UNKNOWN
public static ResponseCode[] values()
for (ResponseCode c : ResponseCode.values()) System.out.println(c);
public static ResponseCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getRawValue()
public static ResponseCode create(int rawValue)
rawValue
- The raw value.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.