generated from Kentico/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
SendGridEvents.cs
80 lines (58 loc) · 3.43 KB
/
SendGridEvents.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
namespace Kentico.Xperience.Twilio.SendGrid.Events
{
/// <summary>
/// Xperience events which correspond with SendGrid events.
/// </summary>
/// <remarks>See <see href="https://docs.sendgrid.com/for-developers/tracking-events/event"/>.</remarks>
public static class SendGridEvents
{
/// <summary>
/// Triggers when a receiving server could not or would not accept the message temporarily.
/// </summary>
public static readonly SendGridEventHandler Blocked = new SendGridEventHandler { Name = SendGridEventName.Blocked };
/// <summary>
/// Triggers when a message bounces, i.e. the receiving server will not accept mail for a recipient permanently.
/// </summary>
public static readonly SendGridEventHandler Bounce = new SendGridEventHandler { Name = SendGridEventName.Bounce };
/// <summary>
/// Triggers when a recipient clicks on a link within the message.
/// </summary>
public static readonly SendGridEventHandler Click = new SendGridEventHandler { Name = SendGridEventName.Click };
/// <summary>
/// Triggers when a receiving server temporarily rejects a message.
/// </summary>
public static readonly SendGridEventHandler Deferred = new SendGridEventHandler { Name = SendGridEventName.Deferred };
/// <summary>
/// Triggers when a message has been successfully delivered to the receiving server.
/// </summary>
public static readonly SendGridEventHandler Delivered = new SendGridEventHandler { Name = SendGridEventName.Delivered };
/// <summary>
/// Triggers when a message is dropped, i.e. purposefully not delivered.
/// </summary>
public static readonly SendGridEventHandler Dropped = new SendGridEventHandler { Name = SendGridEventName.Dropped };
/// <summary>
/// Triggers when a recipient unsubscribes from a specific group either by clicking the link directly or updating their preferences.
/// </summary>
public static readonly SendGridEventHandler GroupUnsubscribe = new SendGridEventHandler { Name = SendGridEventName.GroupUnsubscribe };
/// <summary>
/// Triggers when a recipient resubscribes to a specific group by updating their preferences.
/// </summary>
public static readonly SendGridEventHandler GroupResubscribe = new SendGridEventHandler { Name = SendGridEventName.GroupResubscribe };
/// <summary>
/// Triggers when a recipient has opened the HTML message.
/// </summary>
public static readonly SendGridEventHandler Open = new SendGridEventHandler { Name = SendGridEventName.Open };
/// <summary>
/// Triggers when a message has been received and is ready to be delivered.
/// </summary>
public static readonly SendGridEventHandler Processed = new SendGridEventHandler { Name = SendGridEventName.Processed };
/// <summary>
/// Triggers when a recipient marks a message as spam.
/// </summary>
public static readonly SendGridEventHandler SpamReport = new SendGridEventHandler { Name = SendGridEventName.SpamReport };
/// <summary>
/// Triggers when a recipient clicks on the 'Opt Out of All Emails' link.
/// </summary>
public static readonly SendGridEventHandler Unsubscribe = new SendGridEventHandler { Name = SendGridEventName.Unsubscribe };
}
}