|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsfs2x.client.requests.RoomSettings
public class RoomSettings
The RoomSettings class is a container for the settings required to create a Room using the CreateRoomRequest request.
Room,
CreateRoomRequest| Constructor Summary | |
|---|---|
RoomSettings(java.lang.String name)
Creates a new RoomSettings instance. |
|
| Method Summary | |
|---|---|
RoomEvents |
getEvents()
Defines the flags indicating which events related to the Room are dispatched by the SmartFox client. |
RoomExtension |
getExtension()
Defines the Extension that must be attached to the Room on the server-side, and its settings. |
java.lang.String |
getGroupId()
Defines the id of the Group to which the Room should belong. |
int |
getMaxSpectators()
Defines the maximum number of spectators allowed in the Room (only for Game Rooms). |
int |
getMaxUsers()
Defines the maximum number of users allowed in the Room. |
int |
getMaxVariables()
Defines the maximum number of Room Variables allowed for the Room. |
java.lang.String |
getName()
Defines the name of the Room. |
java.lang.String |
getPassword()
Defines the password of the Room. |
RoomPermissions |
getPermissions()
Defines the flags indicating which operations are permitted on the Room. |
java.util.List<RoomVariable> |
getVariables()
Defines a list of RooomVariable objects to be attached to the Room. |
boolean |
isGame()
Indicates whether the Room is a Game Room or not. |
void |
setEvents(RoomEvents events)
*Private* |
void |
setExtension(RoomExtension extension)
*Private* |
void |
setGame(boolean game)
*Private* |
void |
setGroupId(java.lang.String groupId)
*Private* |
void |
setMaxSpectators(int maxSpectators)
*Private* |
void |
setMaxUsers(int maxUsers)
*Private* |
void |
setMaxVariables(int maxVariables)
*Private* |
void |
setName(java.lang.String name)
*Private* |
void |
setPassword(java.lang.String password)
*Private* |
void |
setPermissions(RoomPermissions permissions)
*Private* |
void |
setVariables(java.util.List<RoomVariable> variables)
*Private* |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoomSettings(java.lang.String name)
name - The name of the Room to be created.CreateRoomRequest| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getPassword()
The default value is an empty string.
public void setPassword(java.lang.String password)
public boolean isGame()
public void setGame(boolean game)
public int getMaxUsers()
getMaxSpectators()public void setMaxUsers(int maxUsers)
public int getMaxVariables()
public void setMaxVariables(int maxVariables)
public int getMaxSpectators()
getMaxUsers()public void setMaxSpectators(int maxSpectators)
public java.util.List<RoomVariable> getVariables()
RoomVariablepublic void setVariables(java.util.List<RoomVariable> variables)
public RoomPermissions getPermissions()
Permissions include: name and password change, maximum users change and public messaging.
If set to null, the permissions configured on the server-side are used (see the SmartFoxServer 2X Administration Tool documentation).
public void setPermissions(RoomPermissions permissions)
public RoomEvents getEvents()
Room events include: users entering or leaving the room, user count change and user variables update.
If set to null, the events configured on the server-side are used (see the SmartFoxServer 2X Administration Tool documentation).
public void setEvents(RoomEvents events)
public RoomExtension getExtension()
public void setExtension(RoomExtension extension)
public java.lang.String getGroupId()
Room.getGroupId()public void setGroupId(java.lang.String groupId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||