/// <summary> /// <para>Begins an asynchronous send to the list folders route.</para> /// </summary> /// <param name="includeMembership">If include user and group membership information in /// the response.</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 BeginListFolders(bool includeMembership = false, sys.AsyncCallback callback = null, object callbackState = null) { var listFoldersArgs = new ListFoldersArgs(includeMembership); return this.BeginListFolders(listFoldersArgs, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the list folders route.</para> /// </summary> /// <param name="listFoldersArgs">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 BeginListFolders(ListFoldersArgs listFoldersArgs, sys.AsyncCallback callback, object state = null) { var task = this.ListFoldersAsync(listFoldersArgs); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Return the list of all shared folders the current user has access to.</para> /// <para>Warning: This endpoint is in beta and is subject to minor but possibly /// backwards-incompatible changes.</para> /// </summary> /// <param name="includeMembership">If include user and group membership information in /// the response.</param> /// <returns>The task that represents the asynchronous send operation. The TResult /// parameter contains the response from the server.</returns> public t.Task<ListFoldersResult> ListFoldersAsync(bool includeMembership = false) { var listFoldersArgs = new ListFoldersArgs(includeMembership); return this.ListFoldersAsync(listFoldersArgs); }
/// <summary> /// <para>Return the list of all shared folders the current user has access to.</para> /// <para>Warning: This endpoint is in beta and is subject to minor but possibly /// backwards-incompatible changes.</para> /// </summary> /// <param name="listFoldersArgs">The request parameters</param> /// <returns>The task that represents the asynchronous send operation. The TResult /// parameter contains the response from the server.</returns> public t.Task<ListFoldersResult> ListFoldersAsync(ListFoldersArgs listFoldersArgs) { return this.Transport.SendRpcRequestAsync<ListFoldersArgs, ListFoldersResult, enc.Empty>(listFoldersArgs, "api", "/sharing/list_folders", ListFoldersArgs.Encoder, ListFoldersResult.Decoder, enc.EmptyDecoder.Instance); }