/// <summary> /// Asynchronously Retrieve Custom Field Item Jobcode Filters, with support for cancellation. /// </summary> /// <remarks> /// Retrieves a list of all custom field item filters associated with a user or group, /// with options to narrow down the results. /// </remarks> /// <param name="filter"> /// An instance of the <see cref="CustomFieldItemJobcodeFilterFilter"/> 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> /// The set of the <see cref="CustomFieldItemJobcodeFilter"/> objects retrieved, along with an output /// instance of the <see cref="ResultsMeta"/> class containing additional data. /// </returns> public async Task <(IList <CustomFieldItemJobcodeFilter>, ResultsMeta)> GetCustomFieldItemJobcodeFiltersAsync( CustomFieldItemJobcodeFilterFilter filter, RequestOptions options, CancellationToken cancellationToken) { var context = new GetContext <CustomFieldItemJobcodeFilter>(EndpointName.CustomFieldItemJobcodeFilters, filter, options); await ExecuteOperationAsync(context, cancellationToken).ConfigureAwait(false); return(context.Results.Items, context.ResultsMeta); }
/// <summary> /// Retrieve Custom Field Item Jobcode Filters. /// </summary> /// <remarks> /// Retrieves a list of all custom field item filters associated with a user or group, /// with options to narrow down the results. /// </remarks> /// <param name="filter"> /// An instance of the <see cref="CustomFieldItemJobcodeFilterFilter"/> class, for narrowing down the results. /// </param> /// <returns> /// The set of the <see cref="CustomFieldItemJobcodeFilter"/> objects retrieved, along with an output /// instance of the <see cref="ResultsMeta"/> class containing additional data. /// </returns> public (IList <CustomFieldItemJobcodeFilter>, ResultsMeta) GetCustomFieldItemJobcodeFilters( CustomFieldItemJobcodeFilterFilter filter) { return(AsyncUtil.RunSync(() => GetCustomFieldItemJobcodeFiltersAsync(filter))); }
/// <summary> /// Asynchronously Retrieve Custom Field Item Jobcode Filters. /// </summary> /// <remarks> /// Retrieves a list of all custom field item filters associated with a user or group, /// with options to narrow down the results. /// </remarks> /// <param name="filter"> /// An instance of the <see cref="CustomFieldItemJobcodeFilterFilter"/> class, for narrowing down the results. /// </param> /// <param name="options"> /// An instance of the <see cref="RequestOptions"/> class, for customizing method processing. /// </param> /// <returns> /// The set of the <see cref="CustomFieldItemJobcodeFilter"/> objects retrieved, along with an output /// instance of the <see cref="ResultsMeta"/> class containing additional data. /// </returns> public async Task <(IList <CustomFieldItemJobcodeFilter>, ResultsMeta)> GetCustomFieldItemJobcodeFiltersAsync( CustomFieldItemJobcodeFilterFilter filter, RequestOptions options) { return(await GetCustomFieldItemJobcodeFiltersAsync(filter, options, default).ConfigureAwait(false)); }
/// <summary> /// Asynchronously Retrieve Custom Field Item Jobcode Filters, with support for cancellation. /// </summary> /// <remarks> /// Retrieves a list of all custom field item filters associated with a user or group, /// with options to narrow down the results. /// </remarks> /// <param name="filter"> /// An instance of the <see cref="CustomFieldItemJobcodeFilterFilter"/> 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> /// The set of the <see cref="CustomFieldItemJobcodeFilter"/> objects retrieved, along with an output /// instance of the <see cref="ResultsMeta"/> class containing additional data. /// </returns> public async Task <(IList <CustomFieldItemJobcodeFilter>, ResultsMeta)> GetCustomFieldItemJobcodeFiltersAsync( CustomFieldItemJobcodeFilterFilter filter, CancellationToken cancellationToken) { return(await GetCustomFieldItemJobcodeFiltersAsync(filter, null, cancellationToken).ConfigureAwait(false)); }