/// <summary> /// <para>Begins an asynchronous send to the members set admin permissions /// route.</para> /// </summary> /// <param name="user">Identity of user whose role will be set.</param> /// <param name="newRole">The new role of the member.</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 BeginMembersSetAdminPermissions(UserSelectorArg user, AdminTier newRole, sys.AsyncCallback callback, object callbackState = null) { var membersSetPermissionsArg = new MembersSetPermissionsArg(user, newRole); return this.BeginMembersSetAdminPermissions(membersSetPermissionsArg, callback, callbackState); }
/// <summary> /// <para>Updates a team member's permissions.</para> /// <para>Permission : Team member management</para> /// </summary> /// <param name="user">Identity of user whose role will be set.</param> /// <param name="newRole">The new role of the member.</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{MembersSetPermissionsError}">Thrown if /// there is an error processing the request; This will contain a <see /// cref="MembersSetPermissionsError"/>.</exception> public t.Task<MembersSetPermissionsResult> MembersSetAdminPermissionsAsync(UserSelectorArg user, AdminTier newRole) { var membersSetPermissionsArg = new MembersSetPermissionsArg(user, newRole); return this.MembersSetAdminPermissionsAsync(membersSetPermissionsArg); }