/// <summary> /// <para>Begins an asynchronous send to the linked apps revoke linked app /// route.</para> /// </summary> /// <param name="appId">The application's unique id</param> /// <param name="teamMemberId">The unique id of the member owning the device</param> /// <param name="keepAppFolder">Whether to keep the application dedicated folder (in /// case the application uses one)</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 BeginLinkedAppsRevokeLinkedApp(string appId, string teamMemberId, bool keepAppFolder = true, sys.AsyncCallback callback = null, object callbackState = null) { var revokeLinkedApiAppArg = new RevokeLinkedApiAppArg(appId, teamMemberId, keepAppFolder); return this.BeginLinkedAppsRevokeLinkedApp(revokeLinkedApiAppArg, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the linked apps revoke linked app /// route.</para> /// </summary> /// <param name="revokeLinkedApiAppArg">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 BeginLinkedAppsRevokeLinkedApp(RevokeLinkedApiAppArg revokeLinkedApiAppArg, sys.AsyncCallback callback, object state = null) { var task = this.LinkedAppsRevokeLinkedAppAsync(revokeLinkedApiAppArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Revoke a linked application of the team member</para> /// </summary> /// <param name="appId">The application's unique id</param> /// <param name="teamMemberId">The unique id of the member owning the device</param> /// <param name="keepAppFolder">Whether to keep the application dedicated folder (in /// case the application uses one)</param> /// <returns>The task that represents the asynchronous send operation.</returns> /// <exception cref="Dropbox.Api.ApiException{RevokeLinkedAppError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="RevokeLinkedAppError"/>.</exception> public t.Task LinkedAppsRevokeLinkedAppAsync(string appId, string teamMemberId, bool keepAppFolder = true) { var revokeLinkedApiAppArg = new RevokeLinkedApiAppArg(appId, teamMemberId, keepAppFolder); return this.LinkedAppsRevokeLinkedAppAsync(revokeLinkedApiAppArg); }
/// <summary> /// <para>Revoke a linked application of the team member</para> /// </summary> /// <param name="revokeLinkedApiAppArg">The request parameters</param> /// <returns>The task that represents the asynchronous send operation.</returns> /// <exception cref="Dropbox.Api.ApiException{RevokeLinkedAppError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="RevokeLinkedAppError"/>.</exception> public t.Task LinkedAppsRevokeLinkedAppAsync(RevokeLinkedApiAppArg revokeLinkedApiAppArg) { return this.Transport.SendRpcRequestAsync<RevokeLinkedApiAppArg, enc.Empty, RevokeLinkedAppError>(revokeLinkedApiAppArg, "api", "/team/linked_apps/revoke_linked_app", Dropbox.Api.Team.RevokeLinkedApiAppArg.Encoder, enc.EmptyDecoder.Instance, Dropbox.Api.Team.RevokeLinkedAppError.Decoder); }