Beispiel #1
0
        /// <summary>
        /// <para>Begins an asynchronous send to the delete manual contacts batch route.</para>
        /// </summary>
        /// <param name="emailAddresses">List of manually added contacts to be deleted.</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 BeginDeleteManualContactsBatch(col.IEnumerable <string> emailAddresses,
                                                               sys.AsyncCallback callback,
                                                               object callbackState = null)
        {
            var deleteManualContactsArg = new DeleteManualContactsArg(emailAddresses);

            return(this.BeginDeleteManualContactsBatch(deleteManualContactsArg, callback, callbackState));
        }
Beispiel #2
0
        /// <summary>
        /// <para>Begins an asynchronous send to the delete manual contacts batch route.</para>
        /// </summary>
        /// <param name="deleteManualContactsArg">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 BeginDeleteManualContactsBatch(DeleteManualContactsArg deleteManualContactsArg, sys.AsyncCallback callback, object state = null)
        {
            var task = this.DeleteManualContactsBatchAsync(deleteManualContactsArg);

            return(enc.Util.ToApm(task, callback, state));
        }
Beispiel #3
0
 /// <summary>
 /// <para>Removes manually added contacts from the given list.</para>
 /// </summary>
 /// <param name="deleteManualContactsArg">The request parameters</param>
 /// <returns>The task that represents the asynchronous send operation.</returns>
 /// <exception cref="Dropbox.Api.ApiException{TError}">Thrown if there is an error
 /// processing the request; This will contain a <see
 /// cref="DeleteManualContactsError"/>.</exception>
 public t.Task DeleteManualContactsBatchAsync(DeleteManualContactsArg deleteManualContactsArg)
 {
     return(this.Transport.SendRpcRequestAsync <DeleteManualContactsArg, enc.Empty, DeleteManualContactsError>(deleteManualContactsArg, "api", "/contacts/delete_manual_contacts_batch", "user", global::Dropbox.Api.Contacts.DeleteManualContactsArg.Encoder, enc.EmptyDecoder.Instance, global::Dropbox.Api.Contacts.DeleteManualContactsError.Decoder));
 }
Beispiel #4
0
        /// <summary>
        /// <para>Removes manually added contacts from the given list.</para>
        /// </summary>
        /// <param name="emailAddresses">List of manually added contacts to be deleted.</param>
        /// <returns>The task that represents the asynchronous send operation.</returns>
        /// <exception cref="Dropbox.Api.ApiException{TError}">Thrown if there is an error
        /// processing the request; This will contain a <see
        /// cref="DeleteManualContactsError"/>.</exception>
        public t.Task DeleteManualContactsBatchAsync(col.IEnumerable <string> emailAddresses)
        {
            var deleteManualContactsArg = new DeleteManualContactsArg(emailAddresses);

            return(this.DeleteManualContactsBatchAsync(deleteManualContactsArg));
        }