From 15a1673089607f45eace6182e5c750ffe56d5f7a Mon Sep 17 00:00:00 2001 From: Mike Beers Date: Tue, 10 Dec 2024 11:12:43 -0500 Subject: [PATCH] Create PostmarkClickWebhookMessage Creates a representation of the payload of the click tracking webhook to match other webhook message models. --- .../Model/PostmarkClickWebhookMessage | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/Postmark/Model/PostmarkClickWebhookMessage diff --git a/src/Postmark/Model/PostmarkClickWebhookMessage b/src/Postmark/Model/PostmarkClickWebhookMessage new file mode 100644 index 0000000..e48bd4a --- /dev/null +++ b/src/Postmark/Model/PostmarkClickWebhookMessage @@ -0,0 +1,35 @@ +using PostmarkDotNet.Model; +using System; +using System.Collections.Generic; + +namespace PostmarkDotNet.Webhooks +{ + /// + /// Representation of the payload of the click tracking webhook + /// + public class PostmarkClickWebhookMessage : PostmarkClick + { + /// + /// The time the click was received by the Postmark servers. + /// + /// The time the click was received + public DateTime ReceivedAt { get; set; } + + /// + /// The tags users add to emails + /// + /// The specific tag string + public string Tag { get; set; } + + /// + /// The email address of the recipient who opened the email. + /// + /// Email address of the recipient + public string Recipient { get; set; } + + /// + /// The metadata for the opened message. + /// + public Dictionary Metadata { get; set; } + } +}