public Task <IReadOnlyList <Activity> > GetAllForCurrent(ActivityFilters filters) { Ensure.ArgumentNotNull(filters, nameof(filters)); var parameters = filters.Parameters; var options = new ApiOptions { StartPage = filters.StartPage, PageCount = filters.PageCount, PageSize = filters.PageSize }; return(ApiConnection.GetAll <Activity>(ApiUrls.Activities(), parameters, options)); }
public Task <IReadOnlyList <Activity> > GetAllForUserId(long userId, ActivityFilters filters) { Ensure.ArgumentNotNull(filters, nameof(filters)); var parameters = filters.Parameters; parameters.Add("user_id", userId.ToString()); var options = new ApiOptions { StartPage = filters.StartPage, PageCount = filters.PageCount, PageSize = filters.PageSize }; return(ApiConnection.GetAll <Activity>(ApiUrls.Activities(), parameters, options)); }