Class SubscriberSubscribedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a subscriber subscribes to a newsletter list.
public sealed record SubscriberSubscribedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<SubscriberSubscribedEvent>
- Inheritance
-
SubscriberSubscribedEvent
- Implements
- Inherited Members
Constructors
SubscriberSubscribedEvent(string, string, string, string, DateTimeOffset, string, bool)
Integration event raised when a subscriber subscribes to a newsletter list.
public SubscriberSubscribedEvent(string SubscriberId, string Email, string ListId, string ListName, DateTimeOffset SubscribedAt, string SubscriptionMethod, bool IsDoubleOptIn)
Parameters
SubscriberIdstringThe unique identifier of the subscriber.
EmailstringThe subscriber's email address.
ListIdstringThe identifier of the list subscribed to.
ListNamestringThe name of the list.
SubscribedAtDateTimeOffsetThe timestamp when the subscription occurred.
SubscriptionMethodstringThe method of subscription (e.g., web form, API, import).
IsDoubleOptInboolWhether double opt-in was required.
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
IsDoubleOptIn
Whether double opt-in was required.
public bool IsDoubleOptIn { get; init; }
Property Value
ListId
The identifier of the list subscribed to.
public string ListId { get; init; }
Property Value
ListName
The name of the list.
public string ListName { get; init; }
Property Value
SubscribedAt
The timestamp when the subscription occurred.
public DateTimeOffset SubscribedAt { get; init; }
Property Value
SubscriberId
The unique identifier of the subscriber.
public string SubscriberId { get; init; }
Property Value
SubscriptionMethod
The method of subscription (e.g., web form, API, import).
public string SubscriptionMethod { get; init; }