示例#1
0
        public async Task <BacklogResponse <Group[]> > GetGroupsAsync(GroupQuery query = null)
        {
            query = query ?? new GroupQuery();

            var response = await GetAsync($"/api/v2/groups", query.Build()).ConfigureAwait(false);

            return(await CreateResponseAsync <Group[], List <_Group> >(
                       response,
                       HttpStatusCode.OK,
                       data => data.Select(x => new Group(x, this)).ToArray()).ConfigureAwait(false));
        }