Class SubscriberComplainedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a subscriber marks an email as spam.
public sealed record SubscriberComplainedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<SubscriberComplainedEvent>
- Inheritance
-
SubscriberComplainedEvent
- Implements
- Inherited Members
Constructors
SubscriberComplainedEvent(string, string, DateTimeOffset, string?)
Integration event raised when a subscriber marks an email as spam.
public SubscriberComplainedEvent(string SubscriberId, string Email, DateTimeOffset ComplainedAt, string? CampaignId)
Parameters
SubscriberIdstringThe unique identifier of the subscriber.
EmailstringThe subscriber's email address.
ComplainedAtDateTimeOffsetThe timestamp when the complaint was received.
CampaignIdstringThe campaign that triggered the complaint.
Properties
CampaignId
The campaign that triggered the complaint.
public string? CampaignId { get; init; }
Property Value
ComplainedAt
The timestamp when the complaint was received.
public DateTimeOffset ComplainedAt { get; init; }
Property Value
The subscriber's email address.
public string Email { get; init; }
Property Value
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
SubscriberId
The unique identifier of the subscriber.
public string SubscriberId { get; init; }