diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-25 16:15:50 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-25 16:15:50 -0400 |
| commit | 547291f04865f23090986667b5a802cd89ea003d (patch) | |
| tree | ff2e4c105979fea94390af6c3614193a0d2a9dc5 /MediaBrowser.Model/Notifications | |
| parent | eda8159b4408c4b33cbdd56e3e6ed2f82757bb0c (diff) | |
rework notifications infrastructure
Diffstat (limited to 'MediaBrowser.Model/Notifications')
| -rw-r--r-- | MediaBrowser.Model/Notifications/Notification.cs | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/MediaBrowser.Model/Notifications/Notification.cs b/MediaBrowser.Model/Notifications/Notification.cs index 14f55b6e1..511227cbf 100644 --- a/MediaBrowser.Model/Notifications/Notification.cs +++ b/MediaBrowser.Model/Notifications/Notification.cs @@ -1,12 +1,13 @@ using System; +using System.Collections.Generic; namespace MediaBrowser.Model.Notifications { public class Notification { - public Guid Id { get; set; } + public string Id { get; set; } - public Guid UserId { get; set; } + public string UserId { get; set; } public DateTime Date { get; set; } @@ -17,16 +18,32 @@ namespace MediaBrowser.Model.Notifications public string Description { get; set; } public string Url { get; set; } - - public string Category { get; set; } - - public string RelatedId { get; set; } public NotificationLevel Level { get; set; } public Notification() { - Id = Guid.NewGuid(); + Date = DateTime.UtcNow; + } + } + + public class NotificationRequest + { + public string Name { get; set; } + + public string Description { get; set; } + + public string Url { get; set; } + + public NotificationLevel Level { get; set; } + + public List<string> UserIds { get; set; } + + public DateTime Date { get; set; } + + public NotificationRequest() + { + UserIds = new List<string>(); Date = DateTime.UtcNow; } } |
