public Command BuildGroupCommand() { var command = new Command("group"); var builder = new GroupRequestBuilder(PathParameters, RequestAdapter); command.AddCommand(builder.BuildGetCommand()); return(command); }
public async Task <Group> FindGroupById(string id, CancellationToken token) { IGroupRequestBuilder grb = new GroupRequestBuilder(client.BaseUrl + $"/groups/{id}", client); try { Group group = await grb.Request().GetAsync(token); return(group); } catch (Exception) { // expected if we are expanding a group and looking for sub-groups } return(default(Group)); }