aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.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/NotificationResultDto.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/NotificationResultDto.cs')
-rw-r--r--Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.cs b/Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.cs
new file mode 100644
index 000000000..e34e176cb
--- /dev/null
+++ b/Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.cs
@@ -0,0 +1,23 @@
+#nullable enable
+
+using System;
+using System.Collections.Generic;
+
+namespace Jellyfin.Api.Models.NotificationDtos
+{
+ /// <summary>
+ /// A list of notifications with the total record count for pagination.
+ /// </summary>
+ public class NotificationResultDto
+ {
+ /// <summary>
+ /// Gets or sets the current page of notifications.
+ /// </summary>
+ public IReadOnlyList<NotificationDto> Notifications { get; set; } = Array.Empty<NotificationDto>();
+
+ /// <summary>
+ /// Gets or sets the total number of notifications.
+ /// </summary>
+ public int TotalRecordCount { get; set; }
+ }
+}