Package com.valhalla.sdk
Class GameMessage
java.lang.Object
com.valhalla.sdk.GameMessage
One currently retained game-message line from the in-client chatbox.
-
Constructor Summary
ConstructorsConstructorDescriptionGameMessage(int sequence, int type, String sender, String text) Compatibility constructor for packages compiled against the original API.GameMessage(int sequence, String text) Compatibility constructor for packages compiled against the original API.GameMessage(long sequence, int type, String sender, String text) GameMessage(long sequence, String text) -
Method Summary
-
Constructor Details
-
GameMessage
Compatibility constructor for packages compiled against the original API. -
GameMessage
-
GameMessage
Compatibility constructor for packages compiled against the original API. -
GameMessage
-
-
Method Details
-
getSequence
public long getSequence()- Returns:
- monotonically increasing native sequence for this retained line
-
getPackedWidgetId
Deprecated.game messages come from the native receive hook and do not have a packed widget identity; usegetSequence()Historical alias retained for source compatibility.- Returns:
- the low non-negative 31 bits of
getSequence()
-
getType
public int getType()- Returns:
- native chat channel (zero is a server/game message)
-
getSender
- Returns:
- sender where the native chat channel provides one
-
getText
- Returns:
- the game-message text, including any client markup
-
getSequence()