Class CampaignOpenedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a campaign email is opened.
public sealed record CampaignOpenedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<CampaignOpenedEvent>
- Inheritance
-
CampaignOpenedEvent
- Implements
- Inherited Members
Constructors
CampaignOpenedEvent(string, string, string, DateTimeOffset, string?, string?)
Integration event raised when a campaign email is opened.
public CampaignOpenedEvent(string CampaignId, string SubscriberId, string Email, DateTimeOffset OpenedAt, string? IpAddress, string? UserAgent)
Parameters
CampaignIdstringThe unique identifier of the campaign.
SubscriberIdstringThe unique identifier of the subscriber.
EmailstringThe subscriber's email address.
OpenedAtDateTimeOffsetThe timestamp when the email was opened.
IpAddressstringThe IP address from which the email was opened.
UserAgentstringThe user agent string of the email client.
Properties
CampaignId
The unique identifier of the campaign.
public string CampaignId { 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
IpAddress
The IP address from which the email was opened.
public string? IpAddress { get; init; }
Property Value
OpenedAt
The timestamp when the email was opened.
public DateTimeOffset OpenedAt { get; init; }
Property Value
SubscriberId
The unique identifier of the subscriber.
public string SubscriberId { get; init; }
Property Value
UserAgent
The user agent string of the email client.
public string? UserAgent { get; init; }