Package sfs2x.client.requests
Class RoomPermissions
- java.lang.Object
-
- sfs2x.client.requests.RoomPermissions
-
public class RoomPermissions extends java.lang.Object
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.- See Also:
RoomSettings.getPermissions()
,CreateRoomRequest
-
-
Constructor Summary
Constructors Constructor Description RoomPermissions()
Creates a new RoomPermissions instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
void
setAllowPasswordStateChange(boolean allowPasswordStateChange)
void
setAllowPublicMessages(boolean allowPublicMessages)
void
setAllowResizing(boolean allowResizing)
-
-
-
Constructor Detail
-
RoomPermissions
public RoomPermissions()
Creates a new RoomPermissions instance. The RoomSettings.permissions property must be set to this instance during Room creation.- See Also:
RoomSettings.getPermissions()
-
-
Method Detail
-
getAllowNameChange
public boolean getAllowNameChange()
Indicates whether changing the Room name after its creation is allowed or not.The Room name can be changed by means of the ChangeRoomNameRequest request.
The default value isfalse
- See Also:
ChangeRoomNameRequest
-
setAllowNameChange
public void setAllowNameChange(boolean allowNameChange)
- See Also:
getAllowNameChange()
-
getAllowPasswordStateChange
public boolean getAllowPasswordStateChange()
Indicates whether changing (or removing) the Room password after its creation is allowed or not.The Room password can be changed by means of the ChangeRoomPasswordStateRequest request.
The default value isfalse
- See Also:
ChangeRoomPasswordStateRequest
-
setAllowPasswordStateChange
public void setAllowPasswordStateChange(boolean allowPasswordStateChange)
- See Also:
getAllowPasswordStateChange()
-
getAllowPublicMessages
public boolean getAllowPublicMessages()
Indicates whether users inside the Room are allowed to send public messages or not.Public messages can be sent by means of the PublicMessageRequest request.
The default value isfalse
- See Also:
PublicMessageRequest
-
setAllowPublicMessages
public void setAllowPublicMessages(boolean allowPublicMessages)
- See Also:
getAllowPublicMessages()
-
getAllowResizing
public boolean getAllowResizing()
Indicates whether the Room capacity can be changed after its creation or not.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.
The default value isfalse
- See Also:
ChangeRoomCapacityRequest
-
setAllowResizing
public void setAllowResizing(boolean allowResizing)
- See Also:
getAllowResizing()
-
-