-
Notifications
You must be signed in to change notification settings - Fork 4
/
Constants.cs
21 lines (16 loc) · 1.09 KB
/
Constants.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace DQ.Scheduling {
public static class Constants {
// Scheduling Constants
public static readonly string EventUpcomingName = "EventUpcoming";
public static readonly string EventStartedName = "EventStarted";
public static readonly string EventEndedName = "EventEnded";
public static readonly string EventFollowUpName = "EventFollowUp";
public static readonly string EventCustomNotification = "EventCustomNotification";
public static readonly string[] DefaultEventNames = {EventUpcomingName, EventStartedName, EventEndedName, EventFollowUpName};
// Notification Constants
public static readonly string EventSubscriptionNotification = "EventNotification";
public static readonly string NotificationsSubscriptionType = "NotificationsSubscription";
// Email regex, taken from Orchard.Comments/Models/CommentPart
public const string EmailRegex = @"^(?![\.@])(""([^""\r\\]|\\[""\r\\])*""|([-\w!#$%&'*+/=?^`{|}~]|(?<!\.)\.)*)(?<!\.)@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$";
}
}