diff options
Diffstat (limited to 'MediaBrowser.Model/Notifications')
5 files changed, 76 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Notifications/Notification.cs b/MediaBrowser.Model/Notifications/Notification.cs new file mode 100644 index 000000000..14f55b6e1 --- /dev/null +++ b/MediaBrowser.Model/Notifications/Notification.cs @@ -0,0 +1,33 @@ +using System; + +namespace MediaBrowser.Model.Notifications +{ + public class Notification + { + public Guid Id { get; set; } + + public Guid UserId { get; set; } + + public DateTime Date { get; set; } + + public bool IsRead { get; set; } + + public string Name { get; set; } + + 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; + } + } +} diff --git a/MediaBrowser.Model/Notifications/NotificationLevel.cs b/MediaBrowser.Model/Notifications/NotificationLevel.cs new file mode 100644 index 000000000..24946e071 --- /dev/null +++ b/MediaBrowser.Model/Notifications/NotificationLevel.cs @@ -0,0 +1,10 @@ + +namespace MediaBrowser.Model.Notifications +{ + public enum NotificationLevel + { + Normal, + Warning, + Error + } +} diff --git a/MediaBrowser.Model/Notifications/NotificationQuery.cs b/MediaBrowser.Model/Notifications/NotificationQuery.cs new file mode 100644 index 000000000..39a7326a6 --- /dev/null +++ b/MediaBrowser.Model/Notifications/NotificationQuery.cs @@ -0,0 +1,15 @@ +using System; + +namespace MediaBrowser.Model.Notifications +{ + public class NotificationQuery + { + public Guid? UserId { get; set; } + + public bool? IsRead { get; set; } + + public int? StartIndex { get; set; } + + public int? Limit { get; set; } + } +} diff --git a/MediaBrowser.Model/Notifications/NotificationResult.cs b/MediaBrowser.Model/Notifications/NotificationResult.cs new file mode 100644 index 000000000..a98fe4edb --- /dev/null +++ b/MediaBrowser.Model/Notifications/NotificationResult.cs @@ -0,0 +1,9 @@ + +namespace MediaBrowser.Model.Notifications +{ + public class NotificationResult + { + public Notification[] Notifications { get; set; } + public int TotalRecordCount { get; set; } + } +} diff --git a/MediaBrowser.Model/Notifications/NotificationsSummary.cs b/MediaBrowser.Model/Notifications/NotificationsSummary.cs new file mode 100644 index 000000000..87dd51a5f --- /dev/null +++ b/MediaBrowser.Model/Notifications/NotificationsSummary.cs @@ -0,0 +1,9 @@ + +namespace MediaBrowser.Model.Notifications +{ + public class NotificationsSummary + { + public int UnreadCount { get; set; } + public NotificationLevel MaxUnreadNotificationLevel { get; set; } + } +} |
