public static THNotificationsQuery ToRpcModel(this NotificationsCountQuery query)
 {
     return(new THNotificationsQuery
     {
         Statuses = query._statuses.ToList(),
         Types = query._types.ToList(),
         Actions = query._actions.ToList()
     });
 }
        public void GetNotificationsCount(NotificationsCountQuery query, Action <int> onSuccess, Action <GetSocialError> onError)
        {
            var rpcQuery = query.ToRpcModel();

            LogRequest("getNotificationsCount", rpcQuery);
            WithHadesClient(client =>
            {
                var response = client.getNotificationsCount(SessionId, rpcQuery);
                Ui(() =>
                {
                    LogResponse("getNotificationsCount", response);
                    onSuccess.SafeCall(response);
                });
            }, onError);
        }
 public void GetNotificationsCount(NotificationsCountQuery query, Action <int> onSuccess, Action <GetSocialError> onError)
 {
     DebugUtils.LogMethodCall(MethodBase.GetCurrentMethod(), query, onSuccess, onError);
 }
Beispiel #4
0
 public void GetNotificationsCount(NotificationsCountQuery query, Action <int> onSuccess, Action <GetSocialError> onError)
 {
     _gs_getNotificationsCount(query.ToJson(), Callbacks.IntCallback, onSuccess.GetPointer(),
                               Callbacks.FailureCallback, onError.GetPointer());
 }
Beispiel #5
0
 public void GetNotificationsCount(NotificationsCountQuery query, Action <int> onSuccess, Action <GetSocialError> onError)
 {
     _user.CallStatic("getNotificationsCount", query.ToAjo(), new IntCallbackProxy(onSuccess, onError));
 }