Enum IMessageRecipient.MessageResponse
java.lang.Object
java.lang.Enum<IMessageRecipient.MessageResponse>
com.earth2me.essentials.messaging.IMessageRecipient.MessageResponse
- All Implemented Interfaces:
Serializable
,Comparable<IMessageRecipient.MessageResponse>
- Enclosing interface:
IMessageRecipient
public static enum IMessageRecipient.MessageResponse
extends Enum<IMessageRecipient.MessageResponse>
Represents a response for sending or receiving a message when using
IMessageRecipient.sendMessage(IMessageRecipient, String)
or
IMessageRecipient.onReceiveMessage(IMessageRecipient, String)
.-
Enum Constant Summary
Enum ConstantDescriptionStates that the message was NOT received as a result of the message pre-send event being cancelled.States that the message was NOT received as a result of the receiver ignoring all messages.States that the message was NOT received as a result of the sender being ignored by the recipient.States that the message was received and assumed readable by the receiver.States that the message was received, but the receiver was away, assuming the message was not read.States that the message was NOT received as a result of the recipient being unreachable. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether this response is a success.Returns the enum constant of this type with the specified name.static IMessageRecipient.MessageResponse[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
States that the message was received and assumed readable by the receiver. -
SUCCESS_BUT_AFK
States that the message was received, but the receiver was away, assuming the message was not read. -
MESSAGES_IGNORED
States that the message was NOT received as a result of the receiver ignoring all messages. -
SENDER_IGNORED
States that the message was NOT received as a result of the sender being ignored by the recipient. -
UNREACHABLE
States that the message was NOT received as a result of the recipient being unreachable. -
EVENT_CANCELLED
States that the message was NOT received as a result of the message pre-send event being cancelled.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
isSuccess
public boolean isSuccess()Returns whether this response is a success. In other words equal toSUCCESS
orSUCCESS_BUT_AFK
- Returns:
- whether the response is a success
-