Class SubscriberUnsubscribedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a subscriber unsubscribes from a newsletter list.
public sealed record SubscriberUnsubscribedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<SubscriberUnsubscribedEvent>
- Inheritance
-
SubscriberUnsubscribedEvent
- Implements
- Inherited Members
Constructors
SubscriberUnsubscribedEvent(string, string, string, string, DateTimeOffset, string?, string)
Integration event raised when a subscriber unsubscribes from a newsletter list.
public SubscriberUnsubscribedEvent(string SubscriberId, string Email, string ListId, string ListName, DateTimeOffset UnsubscribedAt, string? UnsubscribeReason, string UnsubscribeMethod)
Parameters
SubscriberIdstringThe unique identifier of the subscriber.
EmailstringThe subscriber's email address.
ListIdstringThe identifier of the list unsubscribed from.
ListNamestringThe name of the list.
UnsubscribedAtDateTimeOffsetThe timestamp when the unsubscription occurred.
UnsubscribeReasonstringThe reason for unsubscribing, if provided.
UnsubscribeMethodstringThe method of unsubscription (e.g., link click, API, complaint).
Properties
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
ListId
The identifier of the list unsubscribed from.
public string ListId { get; init; }
Property Value
ListName
The name of the list.
public string ListName { get; init; }
Property Value
SubscriberId
The unique identifier of the subscriber.
public string SubscriberId { get; init; }
Property Value
UnsubscribeMethod
The method of unsubscription (e.g., link click, API, complaint).
public string UnsubscribeMethod { get; init; }
Property Value
UnsubscribeReason
The reason for unsubscribing, if provided.
public string? UnsubscribeReason { get; init; }
Property Value
UnsubscribedAt
The timestamp when the unsubscription occurred.
public DateTimeOffset UnsubscribedAt { get; init; }