Class GameMessage

java.lang.Object
com.valhalla.sdk.GameMessage

public final class GameMessage extends Object
One currently retained game-message line from the in-client chatbox.
  • Constructor Details

    • GameMessage

      public GameMessage(int sequence, String text)
      Compatibility constructor for packages compiled against the original API.
    • GameMessage

      public GameMessage(long sequence, String text)
    • GameMessage

      public GameMessage(int sequence, int type, String sender, String text)
      Compatibility constructor for packages compiled against the original API.
    • GameMessage

      public GameMessage(long sequence, int type, String sender, String text)
  • Method Details

    • getSequence

      public long getSequence()
      Returns:
      monotonically increasing native sequence for this retained line
    • getPackedWidgetId

      @Deprecated public int getPackedWidgetId()
      Deprecated.
      game messages come from the native receive hook and do not have a packed widget identity; use getSequence()
      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

      public String getSender()
      Returns:
      sender where the native chat channel provides one
    • getText

      public String getText()
      Returns:
      the game-message text, including any client markup