Table of Contents

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

SubscriberId string

The unique identifier of the subscriber.

Email string

The subscriber's email address.

ListId string

The identifier of the list subscribed to.

ListName string

The name of the list.

SubscribedAt DateTimeOffset

The timestamp when the subscription occurred.

SubscriptionMethod string

The method of subscription (e.g., web form, API, import).

IsDoubleOptIn bool

Whether double opt-in was required.

Properties

Email

The subscriber's email address.

public string Email { 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

IsDoubleOptIn

Whether double opt-in was required.

public bool IsDoubleOptIn { get; init; }

Property Value

bool

ListId

The identifier of the list subscribed to.

public string ListId { get; init; }

Property Value

string

ListName

The name of the list.

public string ListName { get; init; }

Property Value

string

SubscribedAt

The timestamp when the subscription occurred.

public DateTimeOffset SubscribedAt { get; init; }

Property Value

DateTimeOffset

SubscriberId

The unique identifier of the subscriber.

public string SubscriberId { get; init; }

Property Value

string

SubscriptionMethod

The method of subscription (e.g., web form, API, import).

public string SubscriptionMethod { get; init; }

Property Value

string