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
CampaignIdstringThe unique identifier of the campaign.
CampaignNamestringThe name of the campaign.
SubjectstringThe subject line of the campaign.
ListIdsIReadOnlyList<string>The identifiers of the lists the campaign was sent to.
RecipientCountintThe number of recipients.
SentAtDateTimeOffsetThe timestamp when the campaign was sent.
Properties
CampaignId
The unique identifier of the campaign.
public string CampaignId { get; init; }
Property Value
CampaignName
The name of the campaign.
public string CampaignName { get; init; }
Property Value
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
ListIds
The identifiers of the lists the campaign was sent to.
public IReadOnlyList<string> ListIds { get; init; }
Property Value
RecipientCount
The number of recipients.
public int RecipientCount { get; init; }
Property Value
SentAt
The timestamp when the campaign was sent.
public DateTimeOffset SentAt { get; init; }
Property Value
Subject
The subject line of the campaign.
public string Subject { get; init; }