/// <summary> /// <para>Begins an asynchronous send to the groups get info route.</para> /// </summary> /// <param name="groupsSelector">The request parameters.</param> /// <param name="callback">The method to be called when the asynchronous send is /// completed.</param> /// <param name="state">A user provided object that distinguished this send from other /// send requests.</param> /// <returns>An object that represents the asynchronous send request.</returns> public sys.IAsyncResult BeginGroupsGetInfo(GroupsSelector groupsSelector, sys.AsyncCallback callback, object state = null) { var task = this.GroupsGetInfoAsync(groupsSelector); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Retrieves information about one or more groups.</para> /// <para>Permission : Team Information</para> /// </summary> /// <param name="groupsSelector">The request parameters</param> /// <returns>The task that represents the asynchronous send operation. The TResult /// parameter contains the response from the server.</returns> /// <exception cref="Dropbox.Api.ApiException{GroupsGetInfoError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="GroupsGetInfoError"/>.</exception> public t.Task<col.List<GroupsGetInfoItem>> GroupsGetInfoAsync(GroupsSelector groupsSelector) { return this.Transport.SendRpcRequestAsync<GroupsSelector, col.List<GroupsGetInfoItem>, GroupsGetInfoError>(groupsSelector, "api", "/team/groups/get_info", Dropbox.Api.Team.GroupsSelector.Encoder, enc.Decoder.CreateListDecoder(Dropbox.Api.Team.GroupsGetInfoItem.Decoder), Dropbox.Api.Team.GroupsGetInfoError.Decoder); }