Enum Class MessageType

java.lang.Object
java.lang.Enum<MessageType>
io.github.jtwitch.message.MessageType
All Implemented Interfaces:
Serializable, Comparable<MessageType>, Constable

public enum MessageType extends Enum<MessageType>
Represent a type of message.
for instance, SUB represent a message writing by a user for his sub.
  • Enum Constant Details

    • SUB

      public static final MessageType SUB
    • RESUB

      public static final MessageType RESUB
    • SUB_GIFT

      public static final MessageType SUB_GIFT
    • A_NON_SUB_GIFT

      public static final MessageType A_NON_SUB_GIFT
    • SUB_MYSTERY_GIFT

      public static final MessageType SUB_MYSTERY_GIFT
    • GIFT_PAID_UPGRADE

      public static final MessageType GIFT_PAID_UPGRADE
    • REWARD_GIFT

      public static final MessageType REWARD_GIFT
    • A_NON_GIFT_PAID_UPGRADE

      public static final MessageType A_NON_GIFT_PAID_UPGRADE
    • HIGHLIGHT

      public static final MessageType HIGHLIGHT
    • SKIP_SUBS_MODE_MESSAGE

      public static final MessageType SKIP_SUBS_MODE_MESSAGE
    • RAID

      public static final MessageType RAID
    • UNRAID

      public static final MessageType UNRAID
    • RITUAL

      public static final MessageType RITUAL
    • BITS_BADGE_TIER

      public static final MessageType BITS_BADGE_TIER
    • NORMAL

      public static final MessageType NORMAL
  • Method Details

    • values

      public static MessageType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MessageType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null