Assembly: OptimaJet.Workflow.Api

Class Filter<TField>

OptimaJet.Workflow.Api.Models.Filter<TField>

A field comparison or a logical combination of nested filters.

public class Filter<TField> where TField : Enum

Constructors

public Filter(FilterType type, Filter<TField>[]? filters, TField? field, object? value) #

Parameters

Name
Type
Description
type
FilterType
filters
Filter`1[]
field
{TField}
value
Object

Properties

[JsonConverter(typeof(StringEnumConverter))] [JsonConverter(typeof(JsonStringEnumConverter))] public FilterType Type { get; } #
Gets the comparison or logical operator.
public Filter<TField>[]? Filters { get; } #
Gets the nested filters used by And, Or and Not operators.
[JsonConverter(typeof(StringEnumConverter))] [JsonConverter(typeof(JsonStringEnumConverter))] public TField? Field { get; } #
Gets the field used by a comparison operator.
[JsonConverter(typeof(ObjectJsonConverter))] public object? Value { get; } #
Gets the value compared with the selected field.

Methods

public static bool TryParse(string? value, out Filter<TField>? filter) #

Parameters

Name
Type
Description
value
String
filter
Filter<TField>

Returns

Type
Description
Boolean