java.lang.Object
java.lang.Enum<MessageType>
com.github.jamesnetherton.zulip.client.api.message.MessageType
All Implemented Interfaces:
Serializable, Comparable<MessageType>

public enum MessageType extends Enum<MessageType>
Defines the type of Zulip message.
  • Enum Constant Details

    • CHANNEL

      public static final MessageType CHANNEL
      The message is a channel message.
    • DIRECT

      public static final MessageType DIRECT
      The message is a direct message.
    • PRIVATE

      public static final MessageType PRIVATE
      The message is private.
    • STREAM

      public static final MessageType STREAM
      The message is a stream message.
  • Method Details

    • values

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

      public static MessageType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<MessageType>
    • fromString

      public static MessageType fromString(String type)