diff options
| author | crobibero <cody@robibe.ro> | 2020-06-04 15:16:04 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-04 15:16:04 -0600 |
| commit | a787efc66027b678cb09e83002ce3f9ba00e206d (patch) | |
| tree | cc460c9a764461158c548eb72332d82d3c1d7280 /Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.cs | |
| parent | 341b947cdecdfc791c1bc3e72da1e68cd3754c3a (diff) | |
| parent | 601e4a88c94ea0ccaab9f3c148d4bbdca2e532ee (diff) | |
Merge remote-tracking branch 'upstream/api-migration' into api-scheduled-tasks
Diffstat (limited to 'Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.cs')
| -rw-r--r-- | Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.cs | 23 |
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; } + } +} |
