Table of Contents

Class EmailCampaignStatsFilter

Namespace
Mailtrap.EmailCampaigns.Models
Assembly
Mailtrap.Abstractions.dll

Represents an optional aggregation window for email campaign statistics.
By default, statistics are aggregated over the whole period since the campaign was last started.

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

Properties

EndDate

Gets or sets the end of the aggregation window (inclusive), in YYYY-MM-DD format.

public string? EndDate { get; set; }

Property Value

string

Window end date, or null to default to the current date.

Remarks

Serialized to the end_date query parameter.

StartDate

Gets or sets the start of the aggregation window (inclusive), in YYYY-MM-DD format.

public string? StartDate { get; set; }

Property Value

string

Window start date, or null to default to the day the campaign was last started.

Remarks

Serialized to the start_date query parameter.