|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsfs2x.client.requests.RoomPermissions
public class RoomPermissions
The RoomPermissions class contains a specific subset of the RoomSettings required to create a Room. It defines which operations users will be able to execute on the Room after its creation.
RoomSettings.getPermissions(),
CreateRoomRequest| Constructor Summary | |
|---|---|
RoomPermissions()
Creates a new RoomPermissions instance. |
|
| Method Summary | |
|---|---|
boolean |
getAllowNameChange()
Indicates whether changing the Room name after its creation is allowed or not. |
boolean |
getAllowPasswordStateChange()
Indicates whether changing (or removing) the Room password after its creation is allowed or not. |
boolean |
getAllowPublicMessages()
Indicates whether users inside the Room are allowed to send public messages or not. |
boolean |
getAllowResizing()
Indicates whether the Room capacity can be changed after its creation or not. |
void |
setAllowNameChange(boolean allowNameChange)
*Private* |
void |
setAllowPasswordStateChange(boolean allowPasswordStateChange)
*Private* |
void |
setAllowPublicMessages(boolean allowPublicMessages)
*Private* |
void |
setAllowResizing(boolean allowResizing)
*Private* |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoomPermissions()
RoomSettings.permissions| Method Detail |
|---|
public boolean getAllowNameChange()
The Room name can be changed by means of the ChangeRoomNameRequest request.
Default: false
ChangeRoomNameRequestpublic void setAllowNameChange(boolean allowNameChange)
public boolean getAllowPasswordStateChange()
The Room password can be changed by means of the ChangeRoomPasswordStateRequest request.
Default: false
ChangeRoomPasswordStateRequestpublic void setAllowPasswordStateChange(boolean allowPasswordStateChange)
public boolean getAllowPublicMessages()
Public messages can be sent by means of the PublicMessageRequest request.
Default: false
PublicMessageRequestpublic void setAllowPublicMessages(boolean allowPublicMessages)
public boolean getAllowResizing()
The capacity is the maximum number of users and spectators (in Game Rooms) allowed to enter the Room. It can be changed by means of the ChangeRoomCapacityRequest request.
Default: false
ChangeRoomCapacityRequestpublic void setAllowResizing(boolean allowResizing)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||