From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- .../Notifications/NotificationRequest.cs | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 MediaBrowser.Model/Notifications/NotificationRequest.cs (limited to 'MediaBrowser.Model/Notifications/NotificationRequest.cs') diff --git a/MediaBrowser.Model/Notifications/NotificationRequest.cs b/MediaBrowser.Model/Notifications/NotificationRequest.cs new file mode 100644 index 000000000..9c89e40fb --- /dev/null +++ b/MediaBrowser.Model/Notifications/NotificationRequest.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; + +namespace MediaBrowser.Model.Notifications +{ + public class NotificationRequest + { + public string Name { get; set; } + + public string Description { get; set; } + + public string Url { get; set; } + + public NotificationLevel Level { get; set; } + + public Guid[] UserIds { get; set; } + + public DateTime Date { get; set; } + + /// + /// The corresponding type name used in configuration. Not for display. + /// + public string NotificationType { get; set; } + + public Dictionary Variables { get; set; } + + public SendToUserType? SendToUserMode { get; set; } + + public NotificationRequest() + { + UserIds = Array.Empty(); + Date = DateTime.UtcNow; + } + } +} -- cgit v1.2.3