aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/NotificationsController.cs
diff options
context:
space:
mode:
authorZadenRB <zaden.ruggieroboune@gmail.com>2020-04-20 00:00:00 -0600
committerZadenRB <zaden.ruggieroboune@gmail.com>2020-04-20 00:00:00 -0600
commit688240151bae0f333cd329572b3774954d13ebae (patch)
tree25a97d67da6a4caac9f898be142ff1e98d919ae6 /Jellyfin.Api/Controllers/NotificationsController.cs
parent16cae23bbee14a7398d39014973b1a476e1ca57c (diff)
Enable nullable reference types on new class, remove unnecessary documenation and return types
Diffstat (limited to 'Jellyfin.Api/Controllers/NotificationsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/NotificationsController.cs11
1 files changed, 2 insertions, 9 deletions
diff --git a/Jellyfin.Api/Controllers/NotificationsController.cs b/Jellyfin.Api/Controllers/NotificationsController.cs
index 76b025fa1..c0c2be626 100644
--- a/Jellyfin.Api/Controllers/NotificationsController.cs
+++ b/Jellyfin.Api/Controllers/NotificationsController.cs
@@ -72,7 +72,6 @@ namespace Jellyfin.Api.Controllers
/// <returns>All notification types.</returns>
[HttpGet("Types")]
[ProducesResponseType(typeof(IEnumerable<NameIdPair>), StatusCodes.Status200OK)]
- [ProducesResponseType(typeof(string), StatusCodes.Status500InternalServerError)]
public IActionResult GetNotificationTypes()
{
try
@@ -91,7 +90,6 @@ namespace Jellyfin.Api.Controllers
/// <returns>All notification services.</returns>
[HttpGet("Services")]
[ProducesResponseType(typeof(IEnumerable<NameIdPair>), StatusCodes.Status200OK)]
- [ProducesResponseType(typeof(string), StatusCodes.Status500InternalServerError)]
public IActionResult GetNotificationServices()
{
try
@@ -114,7 +112,6 @@ namespace Jellyfin.Api.Controllers
/// <returns>Status.</returns>
[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
/// </summary>
/// <param name="userId">The userID.</param>
/// <param name="ids">A comma-separated list of the IDs of notifications which should be set as read.</param>
- /// <returns>Status.</returns>
[HttpPost("{UserID}/Read")]
[ProducesResponseType(StatusCodes.Status200OK)]
- public IActionResult SetRead(
+ public void SetRead(
[FromRoute] string userId,
[FromQuery] string ids)
{
- return Ok();
}
/// <summary>
@@ -163,14 +158,12 @@ namespace Jellyfin.Api.Controllers
/// </summary>
/// <param name="userId">The userID.</param>
/// <param name="ids">A comma-separated list of the IDs of notifications which should be set as unread.</param>
- /// <returns>Status.</returns>
[HttpPost("{UserID}/Unread")]
[ProducesResponseType(StatusCodes.Status200OK)]
- public IActionResult SetUnread(
+ public void SetUnread(
[FromRoute] string userId,
[FromQuery] string ids)
{
- return Ok();
}
}
}