|
ElectroServer 5 Client: C#
|
By default, the first client joined to a room is the room operator. More...
Public Member Functions | |
| EvictUserFromRoomRequest () | |
| EvictUserFromRoomRequest (TBase t) | |
| override TBase | ToThrift () |
| override TBase | NewThrift () |
| override void | FromThrift (TBase t_) |
Properties | |
| int | ZoneId [get, set] |
| Id of the zone that contains the room that contains the user. More... | |
| int | RoomId [get, set] |
| Id of the room that contains the user. More... | |
| string | UserName [get, set] |
| string | Reason [get, set] |
| Reason for the kick or ban. More... | |
| bool | Ban [get, set] |
| Set to true if the user should be banned as well. More... | |
| int | Duration [get, set] |
| The duration of the ban. More... | |
By default, the first client joined to a room is the room operator.
When the client leaves the room the operator status goes to the next person that has joined the room. As a room operator a client can kick users from the room or ban them from the server, provided the operator's user permissions (as set in ES Admin) allow this to be done. If the kick succeeds, all users in the room get a UserEvictedFromRoomEvent giving the name of the user kicked and the reason.
var eur:EvictUserFromRoomRequest = new EvictUserFromRoomRequest(); eur.userName = userToKick; eur.ban = false; eur.duration = -1; eur.roomId = _room.id; eur.zoneId = _room.zoneId; eur.reason = "you smell";
_es.engine.send(eur);
| Electrotank.Electroserver5.Api.EvictUserFromRoomRequest.EvictUserFromRoomRequest | ( | ) |
| Electrotank.Electroserver5.Api.EvictUserFromRoomRequest.EvictUserFromRoomRequest | ( | TBase | t | ) |
|
virtual |
Implements Electrotank.Electroserver5.Api.EsMessage.
|
virtual |
Implements Electrotank.Electroserver5.Api.EsMessage.
|
virtual |
Implements Electrotank.Electroserver5.Api.EsMessage.
|
getset |
Set to true if the user should be banned as well.
|
getset |
The duration of the ban.
|
getset |
Reason for the kick or ban.
The target user receives this reason.
|
getset |
Id of the room that contains the user.
|
getset |
|
getset |
Id of the zone that contains the room that contains the user.