コード例 #1
0
 private void GetUsers()
 {
     Communities.GetUsers(FormUserList(), users =>
     {
         _console.LogD("Users: " + users.ToDebugString());
     }, OnError);
 }
コード例 #2
0
    private void DrawGetUsersByAuthIdentitiesSection()
    {
        DemoGuiUtils.Space();
        GUILayout.BeginVertical("Box");

        var providerUserIds = new List <string>();

        providerUserIds.Add(_customUserId);
        DemoGuiUtils.DrawButton("Get Users By Auth Identities", () => {
            Communities.GetUsers(UserIdList.CreateWithProvider(CustomProviderId, providerUserIds), users => {
                _console.LogD("GetUsersByAuthIdentities result: " + users.ToDebugString());
            }, error => {
                _console.LogE("Failed to get users by auth identities: " + error);
            });
        });
        GUILayout.EndVertical();
    }
コード例 #3
0
 protected override void Load(PagingQuery <UsersQuery> query, Action <PagingResult <User> > success, Action <GetSocialError> error)
 {
     Communities.GetUsers(query, success, error);
 }