using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace Vit.Linq.QueryBuilder { /// /// This class is used to define a hierarchical filter for a given collection. This type can be serialized/deserialized by JSON.NET without needing to modify the data structure from QueryBuilder. /// [ExcludeFromCodeCoverage] public class FilterRule : IFilterRule { /// /// condition - acceptable values are "and" and "or". /// public string condition { get; set; } public string field { get; set; } public string @operator { get; set; } /// /// nested filter rules. /// public List rules { get; set; } /// /// Gets or sets the value of the filter. /// /// /// The value. /// public object value { get; set; } IEnumerable IFilterRule.rules => rules; } }