/// <summary>
        /// <para>Begins an asynchronous send to the get route.</para>
        /// </summary>
        /// <param name="id">The ID of the file request to retrieve.</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 BeginGet(string id,
                                         sys.AsyncCallback callback,
                                         object callbackState = null)
        {
            var getFileRequestArgs = new GetFileRequestArgs(id);

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

            return(enc.Util.ToApm(task, callback, state));
        }
        /// <summary>
        /// <para>Returns the specified file request.</para>
        /// </summary>
        /// <param name="id">The ID of the file request to retrieve.</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{TError}">Thrown if there is an error
        /// processing the request; This will contain a <see
        /// cref="GetFileRequestError"/>.</exception>
        public t.Task <FileRequest> GetAsync(string id)
        {
            var getFileRequestArgs = new GetFileRequestArgs(id);

            return(this.GetAsync(getFileRequestArgs));
        }
 /// <summary>
 /// <para>Returns the specified file request.</para>
 /// </summary>
 /// <param name="getFileRequestArgs">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{TError}">Thrown if there is an error
 /// processing the request; This will contain a <see
 /// cref="GetFileRequestError"/>.</exception>
 public t.Task <FileRequest> GetAsync(GetFileRequestArgs getFileRequestArgs)
 {
     return(this.Transport.SendRpcRequestAsync <GetFileRequestArgs, FileRequest, GetFileRequestError>(getFileRequestArgs, "api", "/file_requests/get", "user", global::Dropbox.Api.FileRequests.GetFileRequestArgs.Encoder, global::Dropbox.Api.FileRequests.FileRequest.Decoder, global::Dropbox.Api.FileRequests.GetFileRequestError.Decoder));
 }