Package com.smartfoxserver.core
Enum Class SFSEventParam
- All Implemented Interfaces:
ISFSEventParam,Serializable,Comparable<SFSEventParam>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA Map<String,Object> of parameters sent from a Node in the Overcast Cluster All values in the Map must be SerializableA reason for the disconnection event, where applicable (ClientDisconnectionReason)Duration of an event, for example a User banThe list of joined Rooms of a User that was disconnected (Listof Room )The custom data sent at login time (SFSObject)The user name sent at login time (String)The custom data to return to the user after a successful login (SFSObject)The user password sent at login time (String)The chat message (String)Moderator/Admin User that triggered a certain operation (for example a Kick or Ban) (User)An object with extra data (ISFSObject)The PlayerId (Integer)A map of PlayerId by Room (Map) of Room, IntegerThe recipient of a message (User)The Room in which the event was fired, where applicable (Room)The User Session (Session)List of uploaded files as List<UploadedFile> (List)Custom HTTP parameters passed in the upload HTTP POST call.The User that generated the event (User)A list of server variables (List)A list of server variables in map ( key/value ) form (Map)The Zone in which the event was fired (Zone) -
Method Summary
Modifier and TypeMethodDescriptionstatic SFSEventParamReturns the enum constant of this class with the specified name.static SFSEventParam[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ZONE
The Zone in which the event was fired (Zone) -
ROOM
The Room in which the event was fired, where applicable (Room) -
USER
The User that generated the event (User) -
LOGIN_NAME
The user name sent at login time (String) -
LOGIN_PASSWORD
The user password sent at login time (String) -
LOGIN_IN_DATA
The custom data sent at login time (SFSObject) -
LOGIN_OUT_DATA
The custom data to return to the user after a successful login (SFSObject) -
JOINED_ROOMS
The list of joined Rooms of a User that was disconnected (Listof Room ) -
PLAYER_ID
The PlayerId (Integer) -
PLAYER_IDS_BY_ROOM
A map of PlayerId by Room (Map) of Room, Integer -
SESSION
The User Session (Session) -
DISCONNECTION_REASON
A reason for the disconnection event, where applicable (ClientDisconnectionReason) -
DURATION
Duration of an event, for example a User ban -
MOD_USER
Moderator/Admin User that triggered a certain operation (for example a Kick or Ban) (User) -
VARIABLES
A list of server variables (List) -
VARIABLES_MAP
A list of server variables in map ( key/value ) form (Map) -
RECIPIENT
The recipient of a message (User) -
MESSAGE
The chat message (String) -
OBJECT
An object with extra data (ISFSObject) -
UPLOAD_FILE_LIST
List of uploaded files as List<UploadedFile> (List)- See Also:
-
UPLOAD_HTTP_PARAMS
Custom HTTP parameters passed in the upload HTTP POST call. Parameters starting with a double underscore (e.g. __color, __price) will be detected and routed to the Extension as a Map<String, String> (Map) -
CLUSTER_EVENT_PARAMS
A Map<String,Object> of parameters sent from a Node in the Overcast Cluster All values in the Map must be Serializable
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-