| Package | com.electrotank.electroserver5.api |
| Class | public class EvictUserFromRoomRequest |
| Inheritance | EvictUserFromRoomRequest EsRequest EsMessage flash.events.Event |
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);
| Property | Defined By | ||
|---|---|---|---|
| ban : Boolean
Set to true if the user should be banned as well. | EvictUserFromRoomRequest | ||
| duration : int
The duration of the ban. | EvictUserFromRoomRequest | ||
![]() | messageNumber : int | EsMessage | |
![]() | messageType : MessageType | EsMessage | |
| reason : String
Reason for the kick or ban. | EvictUserFromRoomRequest | ||
![]() | requestId : int | EsMessage | |
| roomId : int
Id of the room that contains the user. | EvictUserFromRoomRequest | ||
![]() | serverId : String | EsMessage | |
| userName : String | EvictUserFromRoomRequest | ||
| zoneId : int
Id of the zone that contains the room that contains the user. | EvictUserFromRoomRequest | ||
| Method | Defined By | ||
|---|---|---|---|
EvictUserFromRoomRequest(m:MessageType = null, t:TBase = null) | EvictUserFromRoomRequest | ||
fromThrift(t_:TBase):void [override] | EvictUserFromRoomRequest | ||
newThrift():TBase [override] | EvictUserFromRoomRequest | ||
toThrift():TBase [override] | EvictUserFromRoomRequest | ||
| ban | property |
ban:BooleanSet to true if the user should be banned as well.
public function get ban():Boolean public function set ban(value:Boolean):void| duration | property |
duration:intThe duration of the ban.
public function get duration():int public function set duration(value:int):void| reason | property |
reason:StringReason for the kick or ban. The target user receives this reason.
public function get reason():String public function set reason(value:String):void| roomId | property |
roomId:intId of the room that contains the user.
public function get roomId():int public function set roomId(value:int):void| userName | property |
userName:String public function get userName():String public function set userName(value:String):void| zoneId | property |
zoneId:intId of the zone that contains the room that contains the user.
public function get zoneId():int public function set zoneId(value:int):void| EvictUserFromRoomRequest | () | Constructor |
public function EvictUserFromRoomRequest(m:MessageType = null, t:TBase = null)m:MessageType (default = null) | |
t:TBase (default = null) |
| fromThrift | () | method |
override public function fromThrift(t_:TBase):voidParameters
t_:TBase |
| newThrift | () | method |
override public function newThrift():TBaseReturnsTBase |
| toThrift | () | method |
override public function toThrift():TBaseReturnsTBase |