aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/NotificationsController.cs
diff options
context:
space:
mode:
authorZadenRB <zaden.ruggieroboune@gmail.com>2020-04-20 23:53:09 -0600
committerZadenRB <zaden.ruggieroboune@gmail.com>2020-04-20 23:53:09 -0600
commit6c8e1d37bd49339d298c46c24cddf8e858b334c8 (patch)
tree59937929e7916b4ff3befc45307d2f913b99a3a2 /Jellyfin.Api/Controllers/NotificationsController.cs
parent67efcbee05fe7917aaff11fd27235fb952938434 (diff)
Remove more unnecessary IActionResult
Diffstat (limited to 'Jellyfin.Api/Controllers/NotificationsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/NotificationsController.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/Jellyfin.Api/Controllers/NotificationsController.cs b/Jellyfin.Api/Controllers/NotificationsController.cs
index 2a41f6020..932b91d55 100644
--- a/Jellyfin.Api/Controllers/NotificationsController.cs
+++ b/Jellyfin.Api/Controllers/NotificationsController.cs
@@ -43,14 +43,14 @@ namespace Jellyfin.Api.Controllers
/// <param name="limit">An optional limit on the number of notifications returned.</param>
/// <returns>A read-only list of all of the user's notifications.</returns>
[HttpGet("{UserID}")]
- [ProducesResponseType(typeof(IEnumerable<NotificationResultDto>), StatusCodes.Status200OK)]
- public IActionResult GetNotifications(
+ [ProducesResponseType(typeof(NotificationResultDto), StatusCodes.Status200OK)]
+ public NotificationResultDto GetNotifications(
[FromRoute] string userId,
[FromQuery] bool? isRead,
[FromQuery] int? startIndex,
[FromQuery] int? limit)
{
- return Ok(new NotificationResultDto());
+ return new NotificationResultDto();
}
/// <summary>
@@ -60,10 +60,10 @@ namespace Jellyfin.Api.Controllers
/// <returns>Notifications summary for the user.</returns>
[HttpGet("{UserID}/Summary")]
[ProducesResponseType(typeof(NotificationsSummaryDto), StatusCodes.Status200OK)]
- public IActionResult GetNotificationsSummary(
+ public NotificationsSummaryDto GetNotificationsSummary(
[FromRoute] string userId)
{
- return Ok(new NotificationsSummaryDto());
+ return new NotificationsSummaryDto();
}
/// <summary>
@@ -71,10 +71,10 @@ namespace Jellyfin.Api.Controllers
/// </summary>
/// <returns>All notification types.</returns>
[HttpGet("Types")]
- [ProducesResponseType(typeof(IEnumerable<NameIdPair>), StatusCodes.Status200OK)]
- public IActionResult GetNotificationTypes()
+ [ProducesResponseType(typeof(IEnumerable<NotificationTypeInfo>), StatusCodes.Status200OK)]
+ public IEnumerable<NotificationTypeInfo> GetNotificationTypes()
{
- return Ok(_notificationManager.GetNotificationTypes());
+ return _notificationManager.GetNotificationTypes();
}
/// <summary>
@@ -83,9 +83,9 @@ namespace Jellyfin.Api.Controllers
/// <returns>All notification services.</returns>
[HttpGet("Services")]
[ProducesResponseType(typeof(IEnumerable<NameIdPair>), StatusCodes.Status200OK)]
- public IActionResult GetNotificationServices()
+ public IEnumerable<NameIdPair> GetNotificationServices()
{
- return Ok(_notificationManager.GetNotificationServices());
+ return _notificationManager.GetNotificationServices();
}
/// <summary>