public void GetReferrerUsers(ReferralUsersQuery query, Action <List <ReferralUser> > onSuccess, Action <GetSocialError> onFailure)
 {
     LogRequest("getReferrerUsers, query= ", query.ToString());
     WithHadesClient(client =>
     {
         var rpcUsers = client.getReferrerUsers(SessionId, query.GetEventName(), query.GetOffset(), query.GetLimit());
         var users    = rpcUsers.ConvertAll(user => user.ToReferralUser());
         Ui(() =>
         {
             LogResponse("getReferrerUsers", rpcUsers.ToDebugString());
             onSuccess.SafeCall(users);
         });
     }, onFailure);
 }
Example #2
0
 public void GetReferrerUsers(ReferralUsersQuery query, Action <List <ReferralUser> > onSuccess, Action <GetSocialError> onFailure)
 {
     _getSocial.CallStatic("getReferrerUsers", query.ToAjo(), new ListCallbackProxy <ReferralUser>(onSuccess, onFailure));
 }
Example #3
0
 public void GetReferrerUsers(ReferralUsersQuery query, Action <List <ReferralUser> > onSuccess, Action <GetSocialError> onFailure)
 {
     _gs_getReferrerUsers(query.ToJson(), Callbacks.GetReferralUsers, onSuccess.GetPointer(),
                          Callbacks.FailureCallback, onFailure.GetPointer());
 }