aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-06-13 15:09:02 -0600
committercrobibero <cody@robibe.ro>2020-06-13 15:09:02 -0600
commit6c7cc92a092eb9de044aad26b5e989aea0012869 (patch)
treed80c5c0b4395a9d2cafd92f8741cc6d3d9d651f9 /Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.cs
parentfb068b76a12bf9de5de75a0b8079effcd0336ecf (diff)
parent0011e8df47380936742302ef40639a4626a780ed (diff)
Merge remote-tracking branch 'upstream/api-migration' into api-image2
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; }
+ }
+}