/// <summary> /// <para>Begins an asynchronous send to the linked apps revoke linked app batch /// route.</para> /// </summary> /// <param name="revokeLinkedApp">The revoke linked app</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 BeginLinkedAppsRevokeLinkedAppBatch(col.IEnumerable<RevokeLinkedApiAppArg> revokeLinkedApp, sys.AsyncCallback callback, object callbackState = null) { var revokeLinkedApiAppBatchArg = new RevokeLinkedApiAppBatchArg(revokeLinkedApp); return this.BeginLinkedAppsRevokeLinkedAppBatch(revokeLinkedApiAppBatchArg, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the linked apps revoke linked app batch /// route.</para> /// </summary> /// <param name="revokeLinkedApiAppBatchArg">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 BeginLinkedAppsRevokeLinkedAppBatch(RevokeLinkedApiAppBatchArg revokeLinkedApiAppBatchArg, sys.AsyncCallback callback, object state = null) { var task = this.LinkedAppsRevokeLinkedAppBatchAsync(revokeLinkedApiAppBatchArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Revoke a list of linked applications of the team members</para> /// </summary> /// <param name="revokeLinkedApp">The revoke linked app</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{RevokeLinkedAppBatchError}">Thrown if /// there is an error processing the request; This will contain a <see /// cref="RevokeLinkedAppBatchError"/>.</exception> public t.Task<RevokeLinkedAppBatchResult> LinkedAppsRevokeLinkedAppBatchAsync(col.IEnumerable<RevokeLinkedApiAppArg> revokeLinkedApp) { var revokeLinkedApiAppBatchArg = new RevokeLinkedApiAppBatchArg(revokeLinkedApp); return this.LinkedAppsRevokeLinkedAppBatchAsync(revokeLinkedApiAppBatchArg); }
/// <summary> /// <para>Revoke a list of linked applications of the team members</para> /// </summary> /// <param name="revokeLinkedApiAppBatchArg">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{RevokeLinkedAppBatchError}">Thrown if /// there is an error processing the request; This will contain a <see /// cref="RevokeLinkedAppBatchError"/>.</exception> public t.Task<RevokeLinkedAppBatchResult> LinkedAppsRevokeLinkedAppBatchAsync(RevokeLinkedApiAppBatchArg revokeLinkedApiAppBatchArg) { return this.Transport.SendRpcRequestAsync<RevokeLinkedApiAppBatchArg, RevokeLinkedAppBatchResult, RevokeLinkedAppBatchError>(revokeLinkedApiAppBatchArg, "api", "/team/linked_apps/revoke_linked_app_batch", Dropbox.Api.Team.RevokeLinkedApiAppBatchArg.Encoder, Dropbox.Api.Team.RevokeLinkedAppBatchResult.Decoder, Dropbox.Api.Team.RevokeLinkedAppBatchError.Decoder); }