/// <summary> /// <para>Begins an asynchronous send to the groups members add route.</para> /// </summary> /// <param name="group">Group to which users will be added.</param> /// <param name="members">List of users to be added to the group.</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 BeginGroupsMembersAdd(GroupSelector @group, col.IEnumerable<MemberAccess> members, sys.AsyncCallback callback, object callbackState = null) { var groupMembersAddArg = new GroupMembersAddArg(@group, members); return this.BeginGroupsMembersAdd(groupMembersAddArg, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the groups members add route.</para> /// </summary> /// <param name="groupMembersAddArg">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 BeginGroupsMembersAdd(GroupMembersAddArg groupMembersAddArg, sys.AsyncCallback callback, object state = null) { var task = this.GroupsMembersAddAsync(groupMembersAddArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Adds members to a group.</para> /// <para>The members are added immediately. However the granting of group-owned /// resources may take additional time. Use the <see /// cref="Dropbox.Api.Team.Routes.TeamRoutes.GroupsJobStatusGetAsync" /> to determine /// whether this process has completed.</para> /// <para>Permission : Team member management</para> /// </summary> /// <param name="group">Group to which users will be added.</param> /// <param name="members">List of users to be added to the group.</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{GroupMembersAddError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="GroupMembersAddError"/>.</exception> public t.Task<GroupMembersChangeResult> GroupsMembersAddAsync(GroupSelector @group, col.IEnumerable<MemberAccess> members) { var groupMembersAddArg = new GroupMembersAddArg(@group, members); return this.GroupsMembersAddAsync(groupMembersAddArg); }
/// <summary> /// <para>Adds members to a group.</para> /// <para>The members are added immediately. However the granting of group-owned /// resources may take additional time. Use the <see /// cref="Dropbox.Api.Team.Routes.TeamRoutes.GroupsJobStatusGetAsync" /> to determine /// whether this process has completed.</para> /// <para>Permission : Team member management</para> /// </summary> /// <param name="groupMembersAddArg">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{GroupMembersAddError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="GroupMembersAddError"/>.</exception> public t.Task<GroupMembersChangeResult> GroupsMembersAddAsync(GroupMembersAddArg groupMembersAddArg) { return this.Transport.SendRpcRequestAsync<GroupMembersAddArg, GroupMembersChangeResult, GroupMembersAddError>(groupMembersAddArg, "api", "/team/groups/members/add", Dropbox.Api.Team.GroupMembersAddArg.Encoder, Dropbox.Api.Team.GroupMembersChangeResult.Decoder, Dropbox.Api.Team.GroupMembersAddError.Decoder); }