|
ElectroServer 5 Client: C#
|
This is the response to the GetUsersInRoomRequest. More...
Public Member Functions | |
| GetUsersInRoomResponse () | |
| GetUsersInRoomResponse (TBase t) | |
| override TBase | ToThrift () |
| override TBase | NewThrift () |
| override void | FromThrift (TBase t_) |
Public Member Functions inherited from Electrotank.Electroserver5.Api.EsResponse | |
| EsResponse () | |
Properties | |
| int | ZoneId [get, set] |
| Id of the zone that contains the room. More... | |
| int | RoomId [get, set] |
| Id of the room that contains the users. More... | |
| List< UserListEntry > | Users [get, set] |
| List of UserListEntry objects, each of which describe a user in the room. More... | |
This is the response to the GetUsersInRoomRequest.
It contains a list of UserListEntry objects describing the list of users. Each UserListEntry object contains properties about a user such as the userName and userVariables.
This example shows how to request the list of users in a room, capture the response, and print the results.
private var _es:ElectroServer; private var _room:Room;
private function initialize():void {
_es.engine.addEventListener(MessageType.GetUsersInRoomResponse.name, onGetUsersInRoomResponse);var guir:GetUsersInRoomRequest = new GetUsersInRoomRequest(); guir.zoneId = _room.zoneId; guir.roomId = _room.id; _es.engine.send(guir); }
private function onGetUsersInRoomResponse(e:GetUsersInRoomResponse):void {
trace("Users in this room: " + e.roomId.toString());
for each (var ule:UserListEntry in e.users) {
trace(ule.userName);
}
}
| Electrotank.Electroserver5.Api.GetUsersInRoomResponse.GetUsersInRoomResponse | ( | ) |
| Electrotank.Electroserver5.Api.GetUsersInRoomResponse.GetUsersInRoomResponse | ( | TBase | t | ) |
|
virtual |
Implements Electrotank.Electroserver5.Api.EsMessage.
|
virtual |
Implements Electrotank.Electroserver5.Api.EsMessage.
|
virtual |
Implements Electrotank.Electroserver5.Api.EsMessage.
|
getset |
Id of the room that contains the users.
|
getset |
List of UserListEntry objects, each of which describe a user in the room.
|
getset |
Id of the zone that contains the room.