Class PlayerToSpectatorRequest

java.lang.Object
sfs3.client.requests.BaseRequest
sfs3.client.requests.PlayerToSpectatorRequest
All Implemented Interfaces:
sfs3.client.requests.IClientRequest

public class PlayerToSpectatorRequest extends BaseRequest
Turns the current user from player to spectator in a Game Room.

If the operation is successful, all the users in the target Room are notified with the playerToSpectator event. The operation could fail if no spectator slots are available in the Game Room at the time of the request; in this case the playerToSpectatorError event is dispatched to the requester's client.

See Also: