java.lang.Object
com.gmt2001.twitch.eventsub.subscriptions.channel.chat.data.MessageFragment

public final class MessageFragment extends Object
A message fragment in MessageData.
Author:
gmt2001
  • Constructor Details

    • MessageFragment

      protected MessageFragment(JSONObject o)
      Constructor
      Parameters:
      o - The JSON data for the object
  • Method Details

    • text

      public String text()
      The raw message text of this fragment.
      Returns:
    • type

      public String type()
      The fragment type, such as text, cheermote, emote, or mention.
      Returns:
    • cheermote

      public MessageCheermote cheermote()
      The cheermote data if this is a cheermote fragment.
      Returns:
    • emote

      public MessageEmote emote()
      The emote data if this is an emote fragment.
      Returns:
    • mention

      public MessageMention mention()
      The mention data if this is a mention fragment.
      Returns: