aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/NotificationDtos/NotificationsSummaryDto.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-05-03 17:33:01 +0200
committerGitHub <noreply@github.com>2020-05-03 17:33:01 +0200
commitb1a2fb60f25a90f6870d65bc7b8ea8dc58e1f40d (patch)
tree4ecb2ae13b5cd3be0c3dedc02df828fb1a40f340 /Jellyfin.Api/Models/NotificationDtos/NotificationsSummaryDto.cs
parent2cb0f6f1263cabee288ab30109b55c57e24c7ed0 (diff)
parent82231b4393bb367f7fca50fed21f00e469b9f960 (diff)
Merge pull request #2876 from ZadenRB/asp-net-notifications-service
Migrates the notifications service to use ASP.NET API framework
Diffstat (limited to 'Jellyfin.Api/Models/NotificationDtos/NotificationsSummaryDto.cs')
-rw-r--r--Jellyfin.Api/Models/NotificationDtos/NotificationsSummaryDto.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/Jellyfin.Api/Models/NotificationDtos/NotificationsSummaryDto.cs b/Jellyfin.Api/Models/NotificationDtos/NotificationsSummaryDto.cs
new file mode 100644
index 000000000..b3746ee2d
--- /dev/null
+++ b/Jellyfin.Api/Models/NotificationDtos/NotificationsSummaryDto.cs
@@ -0,0 +1,22 @@
+#nullable enable
+
+using MediaBrowser.Model.Notifications;
+
+namespace Jellyfin.Api.Models.NotificationDtos
+{
+ /// <summary>
+ /// The notification summary DTO.
+ /// </summary>
+ public class NotificationsSummaryDto
+ {
+ /// <summary>
+ /// Gets or sets the number of unread notifications.
+ /// </summary>
+ public int UnreadCount { get; set; }
+
+ /// <summary>
+ /// Gets or sets the maximum unread notification level.
+ /// </summary>
+ public NotificationLevel? MaxUnreadNotificationLevel { get; set; }
+ }
+}