/// <summary> /// <para>Begins an asynchronous send to the members get info route.</para> /// </summary> /// <param name="members">List of team members.</param> /// <param name="callback">The method to be called when the asynchronous send is /// completed.</param> /// <param name="callbackState">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 BeginMembersGetInfo(col.IEnumerable<UserSelectorArg> members, sys.AsyncCallback callback, object callbackState = null) { var membersGetInfoArgs = new MembersGetInfoArgs(members); return this.BeginMembersGetInfo(membersGetInfoArgs, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the members get info route.</para> /// </summary> /// <param name="membersGetInfoArgs">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 BeginMembersGetInfo(MembersGetInfoArgs membersGetInfoArgs, sys.AsyncCallback callback, object state = null) { var task = this.MembersGetInfoAsync(membersGetInfoArgs); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Returns information about multiple team members.</para> /// <para>Permission : Team information</para> /// <para>This endpoint will return an empty member_info item, for IDs (or emails) that /// cannot be matched to a valid team member.</para> /// </summary> /// <param name="members">List of team members.</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{MembersGetInfoError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="MembersGetInfoError"/>.</exception> public t.Task<col.List<MembersGetInfoItem>> MembersGetInfoAsync(col.IEnumerable<UserSelectorArg> members) { var membersGetInfoArgs = new MembersGetInfoArgs(members); return this.MembersGetInfoAsync(membersGetInfoArgs); }
/// <summary> /// <para>Returns information about multiple team members.</para> /// <para>Permission : Team information</para> /// <para>This endpoint will return an empty member_info item, for IDs (or emails) that /// cannot be matched to a valid team member.</para> /// </summary> /// <param name="membersGetInfoArgs">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{MembersGetInfoError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="MembersGetInfoError"/>.</exception> public t.Task<col.List<MembersGetInfoItem>> MembersGetInfoAsync(MembersGetInfoArgs membersGetInfoArgs) { return this.Transport.SendRpcRequestAsync<MembersGetInfoArgs, col.List<MembersGetInfoItem>, MembersGetInfoError>(membersGetInfoArgs, "api", "/team/members/get_info", Dropbox.Api.Team.MembersGetInfoArgs.Encoder, enc.Decoder.CreateListDecoder(Dropbox.Api.Team.MembersGetInfoItem.Decoder), Dropbox.Api.Team.MembersGetInfoError.Decoder); }