public enum MessageFromAntType extends java.lang.Enum<MessageFromAntType>
Enum Constant and Description |
---|
ACKNOWLEDGED_DATA |
ANT_VERSION |
BROADCAST_DATA |
BURST_TRANSFER_DATA |
CAPABILITIES |
CHANNEL_EVENT |
CHANNEL_ID |
CHANNEL_RESPONSE |
CHANNEL_STATUS |
OTHER |
SERIAL_NUMBER |
Modifier and Type | Method and Description |
---|---|
static MessageFromAntType |
create(AntMessageParcel antParcel)
Determines the type of this message received from the ANT Radio Service.
|
static MessageFromAntType |
create(int messageId,
byte[] messageContent)
Determines the type of this message based on its message id and contents.
|
int |
getMessageId()
Gets the message ID of the message.
|
static MessageFromAntType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MessageFromAntType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageFromAntType BROADCAST_DATA
public static final MessageFromAntType ACKNOWLEDGED_DATA
public static final MessageFromAntType BURST_TRANSFER_DATA
public static final MessageFromAntType CHANNEL_EVENT
public static final MessageFromAntType CHANNEL_RESPONSE
public static final MessageFromAntType CHANNEL_STATUS
public static final MessageFromAntType CHANNEL_ID
public static final MessageFromAntType ANT_VERSION
public static final MessageFromAntType CAPABILITIES
public static final MessageFromAntType SERIAL_NUMBER
public static final MessageFromAntType OTHER
public static MessageFromAntType[] values()
for (MessageFromAntType c : MessageFromAntType.values()) System.out.println(c);
public static MessageFromAntType 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 static MessageFromAntType create(AntMessageParcel antParcel)
Use this method for convenience when decoding messages rather than manually decoding the raw message IDs and contents.
public static MessageFromAntType create(int messageId, byte[] messageContent)
Use this method for convenience when decoding messages rather than manually decoding the raw message IDs and contents.
public int getMessageId()
MessageId
.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.