Enum MessageStatus
- java.lang.Object
-
- java.lang.Enum<MessageStatus>
-
- com.courier.api.resources.messages.types.MessageStatus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MessageStatus>
public enum MessageStatus extends java.lang.Enum<MessageStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELEDCLICKEDDELIVEREDENQUEUEDOPENEDSENTTHROTTLEDUNDELIVERABLEUNMAPPEDUNROUTABLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()static MessageStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MessageStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLICKED
public static final MessageStatus CLICKED
-
DELIVERED
public static final MessageStatus DELIVERED
-
ENQUEUED
public static final MessageStatus ENQUEUED
-
OPENED
public static final MessageStatus OPENED
-
CANCELED
public static final MessageStatus CANCELED
-
SENT
public static final MessageStatus SENT
-
THROTTLED
public static final MessageStatus THROTTLED
-
UNDELIVERABLE
public static final MessageStatus UNDELIVERABLE
-
UNMAPPED
public static final MessageStatus UNMAPPED
-
UNROUTABLE
public static final MessageStatus UNROUTABLE
-
-
Method Detail
-
values
public static MessageStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MessageStatus c : MessageStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<MessageStatus>
-
-