Table of Contents

Class TestingMessageFilter

Namespace
Mailtrap.TestingMessages.Models
Assembly
Mailtrap.Abstractions.dll

Represents a set of filtering parameters for the message fetching.

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

Properties

LastId

Gets or sets an ID of the last message that will be returned by fetch.
If specified, a page of records before LastId is returned.

public long? LastId { get; set; }

Property Value

long?

ID of the last message that will be returned by fetch.

Remarks

Overrides Page if both are provided.

Page

Gets or sets a page number for paginated results.

public int? Page { get; set; }

Property Value

int?

Page number for paginated results.

Remarks

Is ignored if LastId is provided.

SearchFilter

Gets or sets a query string for search.

public string? SearchFilter { get; set; }

Property Value

string

Query string for search.

Remarks

Matches subject, email and name from TO field.