예제 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="offset"></param>
 /// <param name="limit">max: 2000</param>
 /// <returns></returns>
 public async Task <PaginatedList <User>?> GetUsersAsync(int offset = 0, int limit = 500)
 => await _api.GetPaginatedAsync <User>("3.0/users"
                                        .AddQueryParameter("offset", offset)
                                        .AddQueryParameter("limit", limit));
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="projectId"></param>
 /// <param name="limit">max: 2000</param>
 /// <param name="offset"></param>
 /// <returns></returns>
 public async Task <PaginatedList <WorkPackage>?> GetWorkPackagesAsync(int projectId,
                                                                       int limit  = 500,
                                                                       int offset = 0)
 => await _api.GetPaginatedAsync <WorkPackage>($"3.0/projects/{projectId}/packages"
                                               .AddQueryParameter("limit", limit)
                                               .AddQueryParameter("offset", offset));