public static GetActivitiesV2Request ToRpc(this ActivitiesQuery query) { return(new GetActivitiesV2Request { Target = query.Ids.ToRpc() }); }
public void GetActivities(ActivitiesQuery query, Action <List <ActivityPost> > onSuccess, Action <GetSocialError> onFailure) { _gs_getActivitiesWithQuery(query.ToJson(), Callbacks.GetActivityPosts, onSuccess.GetPointer(), Callbacks.FailureCallback, onFailure.GetPointer()); }
public static THActivitiesQuery ToRpcModel(this ActivitiesQuery query) { return(new THActivitiesQuery { Limit = query._limit, BeforeId = query._filter == ActivitiesQuery.Filter.Older ? query._filteringActivityId : null, AfterId = query._filter == ActivitiesQuery.Filter.Newer ? query._filteringActivityId : null, UserId = query._filterUserId, FriendsFeed = query._isFriendsFeed, Tags = query._tags.ToList() }); }
public void GetActivities(ActivitiesQuery query, Action <List <ActivityPost> > onSuccess, Action <GetSocialError> onFailure) { var rpcQuery = query.ToRpcModel(); LogRequest("getActivities", rpcQuery); WithHadesClient(client => { var response = client.getActivities(SessionId, GetFeedName(query._feed), rpcQuery); Ui(() => { LogResponse("getActivities", response.ToDebugString()); onSuccess.SafeCall(response.ConvertAll(activity => activity.FromRpcModel())); }); }, onFailure); }
public void GetActivities(ActivitiesQuery query, Action <List <ActivityPost> > onSuccess, Action <GetSocialError> onFailure) { DebugUtils.LogMethodCall(MethodBase.GetCurrentMethod(), query, onSuccess, onFailure); }
public void GetActivities(ActivitiesQuery query, Action <List <ActivityPost> > onSuccess, Action <GetSocialError> onFailure) { _getSocial.CallStatic("getActivities", query.ToAjo(), new ListCallbackProxy <ActivityPost>(onSuccess, onFailure)); }