/// <summary> /// <para>Begins an asynchronous send to the devices revoke device session batch /// route.</para> /// </summary> /// <param name="revokeDevices">The revoke devices</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 BeginDevicesRevokeDeviceSessionBatch(col.IEnumerable<RevokeDeviceSessionArg> revokeDevices, sys.AsyncCallback callback, object callbackState = null) { var revokeDeviceSessionBatchArg = new RevokeDeviceSessionBatchArg(revokeDevices); return this.BeginDevicesRevokeDeviceSessionBatch(revokeDeviceSessionBatchArg, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the devices revoke device session batch /// route.</para> /// </summary> /// <param name="revokeDeviceSessionBatchArg">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 BeginDevicesRevokeDeviceSessionBatch(RevokeDeviceSessionBatchArg revokeDeviceSessionBatchArg, sys.AsyncCallback callback, object state = null) { var task = this.DevicesRevokeDeviceSessionBatchAsync(revokeDeviceSessionBatchArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Revoke a list of device sessions of team members</para> /// </summary> /// <param name="revokeDevices">The revoke devices</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{RevokeDeviceSessionBatchError}">Thrown if /// there is an error processing the request; This will contain a <see /// cref="RevokeDeviceSessionBatchError"/>.</exception> public t.Task<RevokeDeviceSessionBatchResult> DevicesRevokeDeviceSessionBatchAsync(col.IEnumerable<RevokeDeviceSessionArg> revokeDevices) { var revokeDeviceSessionBatchArg = new RevokeDeviceSessionBatchArg(revokeDevices); return this.DevicesRevokeDeviceSessionBatchAsync(revokeDeviceSessionBatchArg); }
/// <summary> /// <para>Revoke a list of device sessions of team members</para> /// </summary> /// <param name="revokeDeviceSessionBatchArg">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{RevokeDeviceSessionBatchError}">Thrown if /// there is an error processing the request; This will contain a <see /// cref="RevokeDeviceSessionBatchError"/>.</exception> public t.Task<RevokeDeviceSessionBatchResult> DevicesRevokeDeviceSessionBatchAsync(RevokeDeviceSessionBatchArg revokeDeviceSessionBatchArg) { return this.Transport.SendRpcRequestAsync<RevokeDeviceSessionBatchArg, RevokeDeviceSessionBatchResult, RevokeDeviceSessionBatchError>(revokeDeviceSessionBatchArg, "api", "/team/devices/revoke_device_session_batch", Dropbox.Api.Team.RevokeDeviceSessionBatchArg.Encoder, Dropbox.Api.Team.RevokeDeviceSessionBatchResult.Decoder, Dropbox.Api.Team.RevokeDeviceSessionBatchError.Decoder); }