/// <summary> /// <para>Begins an asynchronous send to the get metadata route.</para> /// </summary> /// <param name="fileId">API ID ("id:...") associated with the Cloud Doc.</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 BeginGetMetadata(string fileId = "", sys.AsyncCallback callback = null, object callbackState = null) { var getMetadataArg = new GetMetadataArg(fileId); return(this.BeginGetMetadata(getMetadataArg, callback, callbackState)); }
/// <summary> /// <para>Returns the metadata for a file or folder.</para> /// </summary> /// <param name="path">The path of a file or folder on Dropbox</param> /// <param name="includeMediaInfo">If true, :field:'FileMetadata.media_info' is set for /// photo and video.</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{GetMetadataError}">Thrown if there is an /// error processing the request; This will contain a <see /// cref="GetMetadataError"/>.</exception> public t.Task<Metadata> GetMetadataAsync(string path, bool includeMediaInfo = false) { var getMetadataArg = new GetMetadataArg(path, includeMediaInfo); return this.GetMetadataAsync(getMetadataArg); }
/// <summary> /// <para>Begins an asynchronous send to the get metadata route.</para> /// </summary> /// <param name="path">The path of a file or folder on Dropbox</param> /// <param name="includeMediaInfo">If true, :field:'FileMetadata.media_info' is set for /// photo and video.</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 BeginGetMetadata(string path, bool includeMediaInfo = false, sys.AsyncCallback callback = null, object callbackState = null) { var getMetadataArg = new GetMetadataArg(path, includeMediaInfo); return this.BeginGetMetadata(getMetadataArg, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the get metadata route.</para> /// </summary> /// <param name="getMetadataArg">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 BeginGetMetadata(GetMetadataArg getMetadataArg, sys.AsyncCallback callback, object state = null) { var task = this.GetMetadataAsync(getMetadataArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Returns the metadata for a file or folder.</para> /// </summary> /// <param name="getMetadataArg">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{GetMetadataError}">Thrown if there is an /// error processing the request; This will contain a <see /// cref="GetMetadataError"/>.</exception> public t.Task<Metadata> GetMetadataAsync(GetMetadataArg getMetadataArg) { return this.Transport.SendRpcRequestAsync<GetMetadataArg, Metadata, GetMetadataError>(getMetadataArg, "api", "/files/get_metadata", GetMetadataArg.Encoder, Metadata.Decoder, GetMetadataError.Decoder); }
/// <summary> /// <para>Begins an asynchronous send to the get metadata route.</para> /// </summary> /// <param name="path">The path of the file or folder on Dropbox. Must not be the /// root.</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 BeginGetMetadata(string path, sys.AsyncCallback callback, object callbackState = null) { var getMetadataArg = new GetMetadataArg(path); return this.BeginGetMetadata(getMetadataArg, callback, callbackState); }
/// <summary> /// <para>Returns the metadata for a file or folder.</para> /// </summary> /// <param name="path">The path of the file or folder on Dropbox. Must not be the /// root.</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{GetMetadataError}">Thrown if there is an /// error processing the request; This will contain a <see /// cref="GetMetadataError"/>.</exception> public t.Task<Metadata> GetMetadataAsync(string path) { var getMetadataArg = new GetMetadataArg(path); return this.GetMetadataAsync(getMetadataArg); }
/// <summary> /// <para>Fetches metadata associated with a Cloud Doc and user. 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">API ID ("id:...") associated with the Cloud Doc.</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="GetMetadataError"/>.</exception> public t.Task <GetMetadataResult> GetMetadataAsync(string fileId = "") { var getMetadataArg = new GetMetadataArg(fileId); return(this.GetMetadataAsync(getMetadataArg)); }
/// <summary> /// <para>Begins an asynchronous send to the get metadata route.</para> /// </summary> /// <param name="getMetadataArg">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 BeginGetMetadata(GetMetadataArg getMetadataArg, sys.AsyncCallback callback, object state = null) { var task = this.GetMetadataAsync(getMetadataArg); return(enc.Util.ToApm(task, callback, state)); }
/// <summary> /// <para>Fetches metadata associated with a Cloud Doc and user. 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="getMetadataArg">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="GetMetadataError"/>.</exception> public t.Task <GetMetadataResult> GetMetadataAsync(GetMetadataArg getMetadataArg) { return(this.Transport.SendRpcRequestAsync <GetMetadataArg, GetMetadataResult, GetMetadataError>(getMetadataArg, "api", "/cloud_docs/get_metadata", "user", global::Dropbox.Api.CloudDocs.GetMetadataArg.Encoder, global::Dropbox.Api.CloudDocs.GetMetadataResult.Decoder, global::Dropbox.Api.CloudDocs.GetMetadataError.Decoder)); }