/// <summary>
        /// <para>Begins an asynchronous send to the get content route.</para>
        /// </summary>
        /// <param name="fileId">The file id</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 BeginGetContent(string fileId,
                                                sys.AsyncCallback callback,
                                                object callbackState = null)
        {
            var getContentArg = new GetContentArg(fileId);

            return(this.BeginGetContent(getContentArg, callback, callbackState));
        }
        /// <summary>
        /// <para>Begins an asynchronous send to the get content route.</para>
        /// </summary>
        /// <param name="getContentArg">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 BeginGetContent(GetContentArg getContentArg, sys.AsyncCallback callback, object state = null)
        {
            var task = this.GetContentAsync(getContentArg);

            return(enc.Util.ToApm(task, callback, state));
        }
        /// <summary>
        /// <para>Fetch the binary content of the requested document. This route requires Cloud
        /// Docs auth. Please make a request to cloud_docs/authorize and supply that token in
        /// the Authorization header.</para>
        /// </summary>
        /// <param name="fileId">The file id</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="CloudDocsAccessError"/>.</exception>
        public t.Task GetContentAsync(string fileId)
        {
            var getContentArg = new GetContentArg(fileId);

            return(this.GetContentAsync(getContentArg));
        }
 /// <summary>
 /// <para>Fetch the binary content of the requested document. This route requires Cloud
 /// Docs auth. Please make a request to cloud_docs/authorize and supply that token in
 /// the Authorization header.</para>
 /// </summary>
 /// <param name="getContentArg">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="CloudDocsAccessError"/>.</exception>
 public t.Task GetContentAsync(GetContentArg getContentArg)
 {
     return(this.Transport.SendDownloadRequestAsync <GetContentArg, enc.Empty, CloudDocsAccessError>(getContentArg, "content", "/cloud_docs/get_content", "user", global::Dropbox.Api.CloudDocs.GetContentArg.Encoder, enc.EmptyDecoder.Instance, global::Dropbox.Api.CloudDocs.CloudDocsAccessError.Decoder));
 }