/// <summary> /// <para>Begins an asynchronous send to the members unsuspend route.</para> /// </summary> /// <param name="user">Identity of user to unsuspend.</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 BeginMembersUnsuspend(UserSelectorArg user, sys.AsyncCallback callback, object callbackState = null) { var membersUnsuspendArg = new MembersUnsuspendArg(user); return this.BeginMembersUnsuspend(membersUnsuspendArg, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the members unsuspend route.</para> /// </summary> /// <param name="membersUnsuspendArg">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 BeginMembersUnsuspend(MembersUnsuspendArg membersUnsuspendArg, sys.AsyncCallback callback, object state = null) { var task = this.MembersUnsuspendAsync(membersUnsuspendArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Unsuspend a member from a team.</para> /// <para>Permission : Team member management</para> /// <para>Exactly one of team_member_id, email, or external_id must be provided to /// identify the user account.</para> /// </summary> /// <param name="user">Identity of user to unsuspend.</param> /// <returns>The task that represents the asynchronous send operation.</returns> /// <exception cref="Dropbox.Api.ApiException{MembersUnsuspendError}">Thrown if there /// is an error processing the request; This will contain a <see /// cref="MembersUnsuspendError"/>.</exception> public t.Task MembersUnsuspendAsync(UserSelectorArg user) { var membersUnsuspendArg = new MembersUnsuspendArg(user); return this.MembersUnsuspendAsync(membersUnsuspendArg); }
/// <summary> /// <para>Unsuspend a member from a team.</para> /// <para>Permission : Team member management</para> /// <para>Exactly one of team_member_id, email, or external_id must be provided to /// identify the user account.</para> /// </summary> /// <param name="membersUnsuspendArg">The request parameters</param> /// <returns>The task that represents the asynchronous send operation.</returns> /// <exception cref="Dropbox.Api.ApiException{MembersUnsuspendError}">Thrown if there /// is an error processing the request; This will contain a <see /// cref="MembersUnsuspendError"/>.</exception> public t.Task MembersUnsuspendAsync(MembersUnsuspendArg membersUnsuspendArg) { return this.Transport.SendRpcRequestAsync<MembersUnsuspendArg, enc.Empty, MembersUnsuspendError>(membersUnsuspendArg, "api", "/team/members/unsuspend", Dropbox.Api.Team.MembersUnsuspendArg.Encoder, enc.EmptyDecoder.Instance, Dropbox.Api.Team.MembersUnsuspendError.Decoder); }