Table of Contents

Class CampaignSentEvent

Namespace
Compendium.Core.Domain.Events.Integration
Assembly
Compendium.Core.dll

Integration event raised when a campaign is sent.

public sealed record CampaignSentEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<CampaignSentEvent>
Inheritance
CampaignSentEvent
Implements
Inherited Members

Constructors

CampaignSentEvent(string, string, string, IReadOnlyList<string>, int, DateTimeOffset)

Integration event raised when a campaign is sent.

public CampaignSentEvent(string CampaignId, string CampaignName, string Subject, IReadOnlyList<string> ListIds, int RecipientCount, DateTimeOffset SentAt)

Parameters

CampaignId string

The unique identifier of the campaign.

CampaignName string

The name of the campaign.

Subject string

The subject line of the campaign.

ListIds IReadOnlyList<string>

The identifiers of the lists the campaign was sent to.

RecipientCount int

The number of recipients.

SentAt DateTimeOffset

The timestamp when the campaign was sent.

Properties

CampaignId

The unique identifier of the campaign.

public string CampaignId { get; init; }

Property Value

string

CampaignName

The name of the campaign.

public string CampaignName { get; init; }

Property Value

string

EventType

Gets the name of the event type for serialization and routing purposes.

public override string EventType { get; }

Property Value

string

ListIds

The identifiers of the lists the campaign was sent to.

public IReadOnlyList<string> ListIds { get; init; }

Property Value

IReadOnlyList<string>

RecipientCount

The number of recipients.

public int RecipientCount { get; init; }

Property Value

int

SentAt

The timestamp when the campaign was sent.

public DateTimeOffset SentAt { get; init; }

Property Value

DateTimeOffset

Subject

The subject line of the campaign.

public string Subject { get; init; }

Property Value

string