Skip to content

Create PostmarkClickWebhookMessage #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions src/Postmark/Model/PostmarkClickWebhookMessage
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using PostmarkDotNet.Model;
using System;
using System.Collections.Generic;

namespace PostmarkDotNet.Webhooks
{
/// <summary>
/// Representation of the payload of the click tracking webhook
/// </summary>
public class PostmarkClickWebhookMessage : PostmarkClick
{
/// <summary>
/// The time the click was received by the Postmark servers.
/// </summary>
/// <value>The time the click was received</value>
public DateTime ReceivedAt { get; set; }

/// <summary>
/// The tags users add to emails
/// </summary>
/// <value>The specific tag string</value>
public string Tag { get; set; }

/// <summary>
/// The email address of the recipient who opened the email.
/// </summary>
/// <value>Email address of the recipient</value>
public string Recipient { get; set; }

/// <summary>
/// The metadata for the opened message.
/// </summary>
public Dictionary<string, string> Metadata { get; set; }
}
}