Package com.smartfoxserver.entities
Enum Class SFSRoomSettings
- All Implemented Interfaces:
Serializable,Comparable<SFSRoomSettings>,Constable
These flags are used to configure the Room behavior
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionToggles the ability to change the capacity of a Room at runtimeToggles the ability to change the password of a Room at runtimeToggles the ability to send public messages in a Room at runtimeToggles the ability to change the name of a Room at runtimeToggles the notifications changes in the count of Users and Spectators in a RoomToggles the notifications for Users entering the RoomToggles the notifications for Users leaving the RoomToggles the notifications for UserVariables changes the Room -
Method Summary
Modifier and TypeMethodDescriptionstatic SFSRoomSettingsReturns the enum constant of this class with the specified name.static SFSRoomSettings[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ROOM_NAME_CHANGE
Toggles the ability to change the name of a Room at runtime -
PASSWORD_STATE_CHANGE
Toggles the ability to change the password of a Room at runtime -
PUBLIC_MESSAGES
Toggles the ability to send public messages in a Room at runtime -
CAPACITY_CHANGE
Toggles the ability to change the capacity of a Room at runtime -
USER_ENTER_EVENT
Toggles the notifications for Users entering the Room -
USER_EXIT_EVENT
Toggles the notifications for Users leaving the Room -
USER_COUNT_CHANGE_EVENT
Toggles the notifications changes in the count of Users and Spectators in a Room -
USER_VARIABLES_UPDATE_EVENT
Toggles the notifications for UserVariables changes the Room
-
-
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
-