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