diff options
| author | crobibero <cody@robibe.ro> | 2020-05-24 12:33:16 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-05-24 12:33:16 -0600 |
| commit | 62ea9b28214eda17bf61116068113a967b560463 (patch) | |
| tree | d8fef592852f93da3a16f630bb1683f273d0243f /Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.cs | |
| parent | 1f9cda6a6600a81969cf8afad3c60fa77bb5a093 (diff) | |
| parent | ebc24470e34a7ba12b64ca30d4c6e67d21dbad91 (diff) | |
Merge upstream/api-migration
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; } + } +} |
