|
ElectroServer 5 Client: C#
|
Knowing the name of a room and the name of a zone you can request the id of the room and the id of the zone. More...
Public Member Functions | |
| FindZoneAndRoomByNameRequest () | |
| FindZoneAndRoomByNameRequest (TBase t) | |
| override TBase | ToThrift () |
| override TBase | NewThrift () |
| override void | FromThrift (TBase t_) |
Properties | |
| string | ZoneName [get, set] |
| Name of the zone whose id you want. More... | |
| string | RoomName [get, set] |
| Name of the room whose id you want. More... | |
Knowing the name of a room and the name of a zone you can request the id of the room and the id of the zone.
This request leads to FindZoneAndRoomByNameResponse.
This example shows how to request the id of a zone and room and capture the response.
private var _es:ElectroServer;
private function initialize():void {
_es.engine.addEventListener(MessageType.FindZoneAndRoomByNameResponse.name, onFindZoneAndRoomByNameResponse);var fzar:FindZoneAndRoomByNameRequest = new FindZoneAndRoomByNameRequest(); fzar.roomName = "MyRoom"; fzar.zoneName = "MyZone";
_es.engine.send(fzar); }
private function onFindZoneAndRoomByNameResponse(e:FindZoneAndRoomByNameResponse):void {
trace("zoneId: " + e.roomAndZoneList[0].toString());
trace("roomId: " + e.roomAndZoneList[1].toString());
}| Electrotank.Electroserver5.Api.FindZoneAndRoomByNameRequest.FindZoneAndRoomByNameRequest | ( | ) |
| Electrotank.Electroserver5.Api.FindZoneAndRoomByNameRequest.FindZoneAndRoomByNameRequest | ( | TBase | t | ) |
|
virtual |
Implements Electrotank.Electroserver5.Api.EsMessage.
|
virtual |
Implements Electrotank.Electroserver5.Api.EsMessage.
|
virtual |
Implements Electrotank.Electroserver5.Api.EsMessage.
|
getset |
Name of the room whose id you want.
|
getset |
Name of the zone whose id you want.