Class Filter<TField>
OptimaJet.Workflow.Api.Models.Filter<TField>
A field comparison or a logical combination of nested filters.
Namespace: OptimaJet.Workflow.Api.Models
public class Filter<TField> where TField : EnumConstructors
public Filter(FilterType type, Filter<TField>[]? filters, TField? field, object? value) #Parameters
Name
Type
Description
typeFilterTypefiltersFilter`1[]field{TField}valueObjectProperties
[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
valueStringfilterFilter<TField>Returns
Type
Description
Boolean