FindRoomsRequest Class |
Namespace: Sfs2X.Requests
public class FindRoomsRequest : BaseRequest
Name | Description | |
---|---|---|
FindRoomsRequest(MatchExpression) |
See FindRoomsRequest(MatchExpression, string, int) constructor.
| |
FindRoomsRequest(MatchExpression, String) |
See FindRoomsRequest(MatchExpression, string, int) constructor.
| |
FindRoomsRequest(MatchExpression, String, Int32) |
Creates a new FindRoomsRequest instance.
|
void SomeMethod() { sfs.AddEventListener(SFSEvent.ROOM_FIND_RESULT, OnRoomFindResult); // Create a matching expression to find Rooms with a "country" variable equal to "Sweden" MatchExpression expr = new MatchExpression('country', StringMatch.EQUALS, 'Sweden'); // Find the Rooms sfs.Send( new FindRoomRequest(expr) ); } void OnRoomFindResult(BaseEvent evt) { Console.WriteLine("Rooms found: " + (List<Room>)evt.Params["rooms"]); // .Net / Unity System.Diagnostics.Debug.WriteLine("Rooms found: " + (List<Room>)evt.Params["rooms"]); // UWP }