aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Notifications/NotificationRequest.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2021-02-20 23:13:04 +0100
committerBond_009 <bond.009@outlook.com>2021-02-20 23:29:33 +0100
commit141efafd3dbbef3dc64824a89fd3fdc77da0b25e (patch)
tree7087b9d58c87a9feb347670cb9eb78957e35af02 /MediaBrowser.Model/Notifications/NotificationRequest.cs
parent13d65318eb36f3fc423d8060e0092c8671579ed0 (diff)
Enable TreatWarningsAsErrors for MediaBrowser.Model
Diffstat (limited to 'MediaBrowser.Model/Notifications/NotificationRequest.cs')
-rw-r--r--MediaBrowser.Model/Notifications/NotificationRequest.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/MediaBrowser.Model/Notifications/NotificationRequest.cs b/MediaBrowser.Model/Notifications/NotificationRequest.cs
index febc2bc09..622c50cd8 100644
--- a/MediaBrowser.Model/Notifications/NotificationRequest.cs
+++ b/MediaBrowser.Model/Notifications/NotificationRequest.cs
@@ -7,6 +7,12 @@ namespace MediaBrowser.Model.Notifications
{
public class NotificationRequest
{
+ public NotificationRequest()
+ {
+ UserIds = Array.Empty<Guid>();
+ Date = DateTime.UtcNow;
+ }
+
public string Name { get; set; }
public string Description { get; set; }
@@ -20,16 +26,10 @@ namespace MediaBrowser.Model.Notifications
public DateTime Date { get; set; }
/// <summary>
- /// The corresponding type name used in configuration. Not for display.
+ /// Gets or sets the corresponding type name used in configuration. Not for display.
/// </summary>
public string NotificationType { get; set; }
public SendToUserType? SendToUserMode { get; set; }
-
- public NotificationRequest()
- {
- UserIds = Array.Empty<Guid>();
- Date = DateTime.UtcNow;
- }
}
}