FindUsersRequest Class |
Namespace: Sfs2X.Requests
public class FindUsersRequest : BaseRequest
Name | Description | |
---|---|---|
FindUsersRequest(MatchExpression) |
See FindUsersRequest(MatchExpression, string, int) constructor.
| |
FindUsersRequest(MatchExpression, Room) |
See FindUsersRequest(MatchExpression, string, int) constructor.
| |
FindUsersRequest(MatchExpression, String) |
See FindUsersRequest(MatchExpression, string, int) constructor.
| |
FindUsersRequest(MatchExpression, Room, Int32) |
See FindUsersRequest(MatchExpression, string, int) constructor.
| |
FindUsersRequest(MatchExpression, String, Int32) |
Creates a new FindUsersRequest instance.
|
void SomeMethod() { sfs.AddEventListener(SFSEvent.USER_FIND_RESULT, OnUserFindResult); // Create a matching expression to find users with an "age" variable greater than 29: MatchExpression expr = new MatchExpression("age", NumberMatch.GREATER_THAN, 29); // Find the users sfs.Send( new FindUsersRequest(expr) ); } void OnUserFindResult(BaseEvent evt) { Console.WriteLine("Users found: " + (List<User>)evt.Params["users"]); // .Net / Unity System.Diagnostics.Debug.WriteLine("Users found: " + (List<User>)evt.Params["users"]); // UWP }