/// <summary> /// <para>Begins an asynchronous send to the groups members remove route.</para> /// </summary> /// <param name="group">The group</param> /// <param name="users">The users</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 BeginGroupsMembersRemove(GroupSelector @group, col.IEnumerable<UserSelectorArg> users, sys.AsyncCallback callback, object callbackState = null) { var groupMembersRemoveArg = new GroupMembersRemoveArg(@group, users); return this.BeginGroupsMembersRemove(groupMembersRemoveArg, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the groups members remove route.</para> /// </summary> /// <param name="groupMembersRemoveArg">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 BeginGroupsMembersRemove(GroupMembersRemoveArg groupMembersRemoveArg, sys.AsyncCallback callback, object state = null) { var task = this.GroupsMembersRemoveAsync(groupMembersRemoveArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Removes members from a group.</para> /// <para>The members are removed immediately. However the revoking 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">The group</param> /// <param name="users">The users</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{GroupMembersRemoveError}">Thrown if there /// is an error processing the request; This will contain a <see /// cref="GroupMembersRemoveError"/>.</exception> public t.Task<GroupMembersChangeResult> GroupsMembersRemoveAsync(GroupSelector @group, col.IEnumerable<UserSelectorArg> users) { var groupMembersRemoveArg = new GroupMembersRemoveArg(@group, users); return this.GroupsMembersRemoveAsync(groupMembersRemoveArg); }
/// <summary> /// <para>Removes members from a group.</para> /// <para>The members are removed immediately. However the revoking 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="groupMembersRemoveArg">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{GroupMembersRemoveError}">Thrown if there /// is an error processing the request; This will contain a <see /// cref="GroupMembersRemoveError"/>.</exception> public t.Task<GroupMembersChangeResult> GroupsMembersRemoveAsync(GroupMembersRemoveArg groupMembersRemoveArg) { return this.Transport.SendRpcRequestAsync<GroupMembersRemoveArg, GroupMembersChangeResult, GroupMembersRemoveError>(groupMembersRemoveArg, "api", "/team/groups/members/remove", Dropbox.Api.Team.GroupMembersRemoveArg.Encoder, Dropbox.Api.Team.GroupMembersChangeResult.Decoder, Dropbox.Api.Team.GroupMembersRemoveError.Decoder); }