Packagecom.electrotank.electroserver5.api
Classpublic class FindGamesRequest
InheritanceFindGamesRequest Inheritance EsRequest Inheritance EsMessage Inheritance flash.events.Event

This request allows a client to request a list of games that are managed by the server. The list is filtered using the 'searchCriteria' property. This example shows how to request a list of poker games, and capture the response.
private var _es:ElectroServer;
private function initialize():void {
        _es.engine.addEventListener(MessageType.FindGamesResponse.name, onFindGamesResponse);

        var fgr:FindGamesRequest = new FindGamesRequest();
        fgr.searchCriteria = new SearchCriteria();
        fgr.searchCriteria.gameType = "PokerGame";
        _es.engine.send(qjr);
}
private function onFindGamesResponse(e:FindGamesResponse):void {
}



Public Properties
 PropertyDefined By
 InheritedmessageNumber : int
EsMessage
 InheritedmessageType : MessageType
EsMessage
 InheritedrequestId : int
EsMessage
  searchCriteria : SearchCriteria
This property is used to filter the list of games managed by the server.
FindGamesRequest
 InheritedserverId : String
EsMessage
Public Methods
 MethodDefined By
  
FindGamesRequest(m:MessageType = null, t:TBase = null)
FindGamesRequest
  
fromThrift(t_:TBase):void
[override]
FindGamesRequest
  
newThrift():TBase
[override]
FindGamesRequest
  
toThrift():TBase
[override]
FindGamesRequest
Property Detail
searchCriteriaproperty
searchCriteria:SearchCriteria

This property is used to filter the list of games managed by the server.


Implementation
    public function get searchCriteria():SearchCriteria
    public function set searchCriteria(value:SearchCriteria):void
Constructor Detail
FindGamesRequest()Constructor
public function FindGamesRequest(m:MessageType = null, t:TBase = null)



Parameters
m:MessageType (default = null)
 
t:TBase (default = null)
Method Detail
fromThrift()method
override public function fromThrift(t_:TBase):void

Parameters

t_:TBase

newThrift()method 
override public function newThrift():TBase

Returns
TBase
toThrift()method 
override public function toThrift():TBase

Returns
TBase