Table of Contents

Class EmailLogsFilterClause

Namespace
Mailtrap.EmailLogs.Models
Assembly
Mailtrap.Abstractions.dll

Filter clause with operator and single value or multiple values. For operators equal, not_equal, ci_equal, ci_not_equal, include_event, not_include_event the value may be single or an array.

public sealed record EmailLogsFilterClause : IEquatable<EmailLogsFilterClause>
Inheritance
EmailLogsFilterClause
Implements

Properties

Operator

Filter operator (e.g. ci_equal, equal, greater_than).

public string Operator { get; set; }

Property Value

string

Value

Single value. Use when filtering with one value.

public string? Value { get; set; }

Property Value

string

ValueLong

Numeric value for number filters (e.g. clicks_count, opens_count, sending_domain_id). When set, used as the value in filters[field][value]=...

public long? ValueLong { get; set; }

Property Value

long?

Values

Multiple values. When non-empty, emitted as repeated filters[field][value]=... query params. Used for equal, not_equal, ci_equal, ci_not_equal, include_event, not_include_event.

[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<string> Values { get; }

Property Value

IList<string>