Package rs.kreme.ksbot.api.wrappers
Enum KSChatMessage.MessageTypes
- java.lang.Object
-
- java.lang.Enum<KSChatMessage.MessageTypes>
-
- rs.kreme.ksbot.api.wrappers.KSChatMessage.MessageTypes
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<KSChatMessage.MessageTypes>
- Enclosing class:
- KSChatMessage
public static enum KSChatMessage.MessageTypes extends java.lang.Enum<KSChatMessage.MessageTypes>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABUSE_REPORTAn abuse report submitted.ACTIONA message about an action.AUTOCHATAn autochat message from a account.CLANCHATA message received in clan chat.CLANCHAT_INFOA message received with information about the current clan chat.DUELA message received when somebody sends a duel offer.EXAMINE_ITEMExamine item description.EXAMINE_NPCExamine NPC description.EXAMINE_OBJECTExamine object description.FILTEREDA message that was filtered.FRIENDS_LIST_ADDAdding account to friend list.GAMEA game message (ie.IGNORE_LIST_ADDAdding account to ignore list.PRIVATE_MESSAGE_INFOA message received when a friend logs in or out.PRIVATE_MESSAGE_RECEIVEDA private message from another account.PRIVATE_MESSAGE_RECEIVED_MODA private message received from a moderator.PRIVATE_MESSAGE_SENTA private message sent to another account.PUBLICA message in the public chat.PUBLIC_MODA message in the public chat from a moderatorSERVERA message received from the server.TRADEA message received when somebody sends a trade offer.TRADE_RECEIVEDA trade request received.TRADE_SENTA trade request being sent.UNKNOWNAn unknown message type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KSChatMessage.MessageTypesforId(int type)static KSChatMessage.MessageTypesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static KSChatMessage.MessageTypes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVER
public static final KSChatMessage.MessageTypes SERVER
A message received from the server.
-
PUBLIC_MOD
public static final KSChatMessage.MessageTypes PUBLIC_MOD
A message in the public chat from a moderator
-
PUBLIC
public static final KSChatMessage.MessageTypes PUBLIC
A message in the public chat.
-
PRIVATE_MESSAGE_RECEIVED
public static final KSChatMessage.MessageTypes PRIVATE_MESSAGE_RECEIVED
A private message from another account.
-
TRADE_RECEIVED
public static final KSChatMessage.MessageTypes TRADE_RECEIVED
A trade request received.
-
PRIVATE_MESSAGE_INFO
public static final KSChatMessage.MessageTypes PRIVATE_MESSAGE_INFO
A message received when a friend logs in or out.
-
PRIVATE_MESSAGE_SENT
public static final KSChatMessage.MessageTypes PRIVATE_MESSAGE_SENT
A private message sent to another account.
-
PRIVATE_MESSAGE_RECEIVED_MOD
public static final KSChatMessage.MessageTypes PRIVATE_MESSAGE_RECEIVED_MOD
A private message received from a moderator.
-
CLANCHAT
public static final KSChatMessage.MessageTypes CLANCHAT
A message received in clan chat.
-
CLANCHAT_INFO
public static final KSChatMessage.MessageTypes CLANCHAT_INFO
A message received with information about the current clan chat.
-
TRADE_SENT
public static final KSChatMessage.MessageTypes TRADE_SENT
A trade request being sent.
-
ABUSE_REPORT
public static final KSChatMessage.MessageTypes ABUSE_REPORT
An abuse report submitted.
-
EXAMINE_ITEM
public static final KSChatMessage.MessageTypes EXAMINE_ITEM
Examine item description.
-
EXAMINE_NPC
public static final KSChatMessage.MessageTypes EXAMINE_NPC
Examine NPC description.
-
EXAMINE_OBJECT
public static final KSChatMessage.MessageTypes EXAMINE_OBJECT
Examine object description.
-
FRIENDS_LIST_ADD
public static final KSChatMessage.MessageTypes FRIENDS_LIST_ADD
Adding account to friend list.
-
IGNORE_LIST_ADD
public static final KSChatMessage.MessageTypes IGNORE_LIST_ADD
Adding account to ignore list.
-
AUTOCHAT
public static final KSChatMessage.MessageTypes AUTOCHAT
An autochat message from a account.
-
GAME
public static final KSChatMessage.MessageTypes GAME
A game message (ie. when a setting is changed).
-
TRADE
public static final KSChatMessage.MessageTypes TRADE
A message received when somebody sends a trade offer.
-
DUEL
public static final KSChatMessage.MessageTypes DUEL
A message received when somebody sends a duel offer.
-
FILTERED
public static final KSChatMessage.MessageTypes FILTERED
A message that was filtered.
-
ACTION
public static final KSChatMessage.MessageTypes ACTION
A message about an action.
-
UNKNOWN
public static final KSChatMessage.MessageTypes UNKNOWN
An unknown message type.
-
-
Method Detail
-
values
public static KSChatMessage.MessageTypes[] 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 (KSChatMessage.MessageTypes c : KSChatMessage.MessageTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KSChatMessage.MessageTypes 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
-
forId
public static KSChatMessage.MessageTypes forId(int type)
-
-