Example #1
0
        /// <summary>
        /// Asynchronously Retrieve Deleted Timesheets, with support for cancellation.
        /// </summary>
        /// <remarks>
        /// Retrieves a list of all deleted timesheets associated with your company,
        /// with optional filters to narrow down the results.
        /// </remarks>
        /// <param name="filter">
        /// An instance of the <see cref="TimesheetsDeletedFilter"/> class, for narrowing down the results.
        /// </param>
        /// <param name="options">
        /// An instance of the <see cref="RequestOptions"/> class, for customizing method processing.
        /// </param>
        /// <param name="cancellationToken">
        /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>
        /// An enumerable set of <see cref="TimesheetsDeleted"/> objects, along with an output
        /// instance of the <see cref="ResultsMeta"/> class containing additional data.
        /// </returns>
        public async Task <(IList <TimesheetsDeleted>, ResultsMeta)> GetTimesheetsDeletedAsync(
            TimesheetsDeletedFilter filter,
            RequestOptions options,
            CancellationToken cancellationToken)
        {
            var context = new GetContext <TimesheetsDeleted>(EndpointName.TimesheetsDeleted, filter, options);

            await ExecuteOperationAsync(context, cancellationToken).ConfigureAwait(false);

            return(context.Results.Items, context.ResultsMeta);
        }
Example #2
0
 /// <summary>
 /// Asynchronously Retrieve Deleted Timesheets.
 /// </summary>
 /// <remarks>
 /// Retrieves a list of all deleted timesheets associated with your company,
 /// with optional filters to narrow down the results.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="TimesheetsDeletedFilter"/> class, for narrowing down the results.
 /// </param>
 /// <returns>
 /// An enumerable set of <see cref="TimesheetsDeleted"/> objects, along with an output
 /// instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public async Task <(IList <TimesheetsDeleted>, ResultsMeta)> GetTimesheetsDeletedAsync(
     TimesheetsDeletedFilter filter)
 {
     return(await GetTimesheetsDeletedAsync(filter, null, default).ConfigureAwait(false));
 }
Example #3
0
 /// <summary>
 /// Retrieve Deleted Timesheets.
 /// </summary>
 /// <remarks>
 /// Retrieves a list of all deleted timesheets associated with your company,
 /// with optional filters to narrow down the results.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="TimesheetsDeletedFilter"/> class, for narrowing down the results.
 /// </param>
 /// <param name="options">
 /// An instance of the <see cref="RequestOptions"/> class, for customizing method processing.
 /// </param>
 /// <returns>
 /// An enumerable set of <see cref="TimesheetsDeleted"/> objects, along with an output
 /// instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public (IList <TimesheetsDeleted>, ResultsMeta) GetTimesheetsDeleted(
     TimesheetsDeletedFilter filter,
     RequestOptions options)
 {
     return(AsyncUtil.RunSync(() => GetTimesheetsDeletedAsync(filter, options)));
 }
Example #4
0
 /// <summary>
 /// Retrieve Deleted Timesheets.
 /// </summary>
 /// <remarks>
 /// Retrieves a list of all deleted timesheets associated with your company,
 /// with optional filters to narrow down the results.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="TimesheetsDeletedFilter"/> class, for narrowing down the results.
 /// </param>
 /// <returns>
 /// An enumerable set of <see cref="TimesheetsDeleted"/> objects, along with an output
 /// instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public (IList <TimesheetsDeleted>, ResultsMeta) GetTimesheetsDeleted(
     TimesheetsDeletedFilter filter)
 {
     return(AsyncUtil.RunSync(() => GetTimesheetsDeletedAsync(filter)));
 }
Example #5
0
 /// <summary>
 /// Asynchronously Retrieve Deleted Timesheets.
 /// </summary>
 /// <remarks>
 /// Retrieves a list of all deleted timesheets associated with your company,
 /// with optional filters to narrow down the results.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="TimesheetsDeletedFilter"/> class, for narrowing down the results.
 /// </param>
 /// <param name="options">
 /// An instance of the <see cref="RequestOptions"/> class, for customizing method processing.
 /// </param>
 /// <returns>
 /// An enumerable set of <see cref="TimesheetsDeleted"/> objects, along with an output
 /// instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public async Task <(IList <TimesheetsDeleted>, ResultsMeta)> GetTimesheetsDeletedAsync(
     TimesheetsDeletedFilter filter,
     RequestOptions options)
 {
     return(await GetTimesheetsDeletedAsync(filter, options, default).ConfigureAwait(false));
 }
Example #6
0
 /// <summary>
 /// Asynchronously Retrieve Deleted Timesheets, with support for cancellation.
 /// </summary>
 /// <remarks>
 /// Retrieves a list of all deleted timesheets associated with your company,
 /// with optional filters to narrow down the results.
 /// </remarks>
 /// <param name="filter">
 /// An instance of the <see cref="TimesheetsDeletedFilter"/> class, for narrowing down the results.
 /// </param>
 /// <param name="cancellationToken">
 /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
 /// </param>
 /// <returns>
 /// An enumerable set of <see cref="TimesheetsDeleted"/> objects, along with an output
 /// instance of the <see cref="ResultsMeta"/> class containing additional data.
 /// </returns>
 public async Task <(IList <TimesheetsDeleted>, ResultsMeta)> GetTimesheetsDeletedAsync(
     TimesheetsDeletedFilter filter,
     CancellationToken cancellationToken)
 {
     return(await GetTimesheetsDeletedAsync(filter, null, cancellationToken).ConfigureAwait(false));
 }