ElectroServer 5 Client: C#
Electrotank.Electroserver5.Api.FindZoneAndRoomByNameRequest Class Reference

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...

Inheritance diagram for Electrotank.Electroserver5.Api.FindZoneAndRoomByNameRequest:
Electrotank.Electroserver5.Api.EsRequest Electrotank.Electroserver5.Api.EsMessage Electrotank.Electroserver5.Api.IThriftSerializable

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...
 

Detailed Description

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());
}
 

Constructor & Destructor Documentation

Electrotank.Electroserver5.Api.FindZoneAndRoomByNameRequest.FindZoneAndRoomByNameRequest ( )
Electrotank.Electroserver5.Api.FindZoneAndRoomByNameRequest.FindZoneAndRoomByNameRequest ( TBase  t)

Member Function Documentation

override void Electrotank.Electroserver5.Api.FindZoneAndRoomByNameRequest.FromThrift ( TBase  t_)
virtual
override TBase Electrotank.Electroserver5.Api.FindZoneAndRoomByNameRequest.NewThrift ( )
virtual
override TBase Electrotank.Electroserver5.Api.FindZoneAndRoomByNameRequest.ToThrift ( )
virtual

Property Documentation

string Electrotank.Electroserver5.Api.FindZoneAndRoomByNameRequest.RoomName
getset

Name of the room whose id you want.

string Electrotank.Electroserver5.Api.FindZoneAndRoomByNameRequest.ZoneName
getset

Name of the zone whose id you want.