diff --git a/Jellyfin.Api/Controllers/NotificationsController.cs b/Jellyfin.Api/Controllers/NotificationsController.cs
index 76b025fa16..c0c2be626b 100644
--- a/Jellyfin.Api/Controllers/NotificationsController.cs
+++ b/Jellyfin.Api/Controllers/NotificationsController.cs
@@ -72,7 +72,6 @@ namespace Jellyfin.Api.Controllers
/// All notification types.
[HttpGet("Types")]
[ProducesResponseType(typeof(IEnumerable), StatusCodes.Status200OK)]
- [ProducesResponseType(typeof(string), StatusCodes.Status500InternalServerError)]
public IActionResult GetNotificationTypes()
{
try
@@ -91,7 +90,6 @@ namespace Jellyfin.Api.Controllers
/// All notification services.
[HttpGet("Services")]
[ProducesResponseType(typeof(IEnumerable), StatusCodes.Status200OK)]
- [ProducesResponseType(typeof(string), StatusCodes.Status500InternalServerError)]
public IActionResult GetNotificationServices()
{
try
@@ -114,7 +112,6 @@ namespace Jellyfin.Api.Controllers
/// Status.
[HttpPost("Admin")]
[ProducesResponseType(StatusCodes.Status200OK)]
- [ProducesResponseType(typeof(string), StatusCodes.Status500InternalServerError)]
public IActionResult CreateAdminNotification(
[FromQuery] string name,
[FromQuery] string description,
@@ -148,14 +145,12 @@ namespace Jellyfin.Api.Controllers
///
/// The userID.
/// A comma-separated list of the IDs of notifications which should be set as read.
- /// Status.
[HttpPost("{UserID}/Read")]
[ProducesResponseType(StatusCodes.Status200OK)]
- public IActionResult SetRead(
+ public void SetRead(
[FromRoute] string userId,
[FromQuery] string ids)
{
- return Ok();
}
///
@@ -163,14 +158,12 @@ namespace Jellyfin.Api.Controllers
///
/// The userID.
/// A comma-separated list of the IDs of notifications which should be set as unread.
- /// Status.
[HttpPost("{UserID}/Unread")]
[ProducesResponseType(StatusCodes.Status200OK)]
- public IActionResult SetUnread(
+ public void SetUnread(
[FromRoute] string userId,
[FromQuery] string ids)
{
- return Ok();
}
}
}
diff --git a/Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.cs b/Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.cs
index 64e92bd83a..e34e176cb9 100644
--- a/Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.cs
+++ b/Jellyfin.Api/Models/NotificationDtos/NotificationResultDto.cs
@@ -1,3 +1,5 @@
+#nullable enable
+
using System;
using System.Collections.Generic;