Enum Class InboundMessageDirection

java.lang.Object
java.lang.Enum<InboundMessageDirection>
io.mailtrap.model.response.inbound.InboundMessageDirection
All Implemented Interfaces:
Serializable, Comparable<InboundMessageDirection>, Constable

public enum InboundMessageDirection extends Enum<InboundMessageDirection>
Direction of a message inside a thread: inbound (received) or outbound (sent as a reply, reply-all, or forward).
  • Enum Constant Details

  • Method Details

    • values

      public static InboundMessageDirection[] 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 InboundMessageDirection 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
    • getValue

      public String getValue()
    • fromValue

      public static InboundMessageDirection fromValue(String value)