Remove more unnecessary IActionResult

This commit is contained in:
ZadenRB 2020-04-20 23:53:09 -06:00
parent 67efcbee05
commit 6c8e1d37bd
1 changed files with 10 additions and 10 deletions

View File

@ -43,14 +43,14 @@ namespace Jellyfin.Api.Controllers
/// <param name="limit">An optional limit on the number of notifications returned.</param> /// <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> /// <returns>A read-only list of all of the user's notifications.</returns>
[HttpGet("{UserID}")] [HttpGet("{UserID}")]
[ProducesResponseType(typeof(IEnumerable<NotificationResultDto>), StatusCodes.Status200OK)] [ProducesResponseType(typeof(NotificationResultDto), StatusCodes.Status200OK)]
public IActionResult GetNotifications( public NotificationResultDto GetNotifications(
[FromRoute] string userId, [FromRoute] string userId,
[FromQuery] bool? isRead, [FromQuery] bool? isRead,
[FromQuery] int? startIndex, [FromQuery] int? startIndex,
[FromQuery] int? limit) [FromQuery] int? limit)
{ {
return Ok(new NotificationResultDto()); return new NotificationResultDto();
} }
/// <summary> /// <summary>
@ -60,10 +60,10 @@ namespace Jellyfin.Api.Controllers
/// <returns>Notifications summary for the user.</returns> /// <returns>Notifications summary for the user.</returns>
[HttpGet("{UserID}/Summary")] [HttpGet("{UserID}/Summary")]
[ProducesResponseType(typeof(NotificationsSummaryDto), StatusCodes.Status200OK)] [ProducesResponseType(typeof(NotificationsSummaryDto), StatusCodes.Status200OK)]
public IActionResult GetNotificationsSummary( public NotificationsSummaryDto GetNotificationsSummary(
[FromRoute] string userId) [FromRoute] string userId)
{ {
return Ok(new NotificationsSummaryDto()); return new NotificationsSummaryDto();
} }
/// <summary> /// <summary>
@ -71,10 +71,10 @@ namespace Jellyfin.Api.Controllers
/// </summary> /// </summary>
/// <returns>All notification types.</returns> /// <returns>All notification types.</returns>
[HttpGet("Types")] [HttpGet("Types")]
[ProducesResponseType(typeof(IEnumerable<NameIdPair>), StatusCodes.Status200OK)] [ProducesResponseType(typeof(IEnumerable<NotificationTypeInfo>), StatusCodes.Status200OK)]
public IActionResult GetNotificationTypes() public IEnumerable<NotificationTypeInfo> GetNotificationTypes()
{ {
return Ok(_notificationManager.GetNotificationTypes()); return _notificationManager.GetNotificationTypes();
} }
/// <summary> /// <summary>
@ -83,9 +83,9 @@ namespace Jellyfin.Api.Controllers
/// <returns>All notification services.</returns> /// <returns>All notification services.</returns>
[HttpGet("Services")] [HttpGet("Services")]
[ProducesResponseType(typeof(IEnumerable<NameIdPair>), StatusCodes.Status200OK)] [ProducesResponseType(typeof(IEnumerable<NameIdPair>), StatusCodes.Status200OK)]
public IActionResult GetNotificationServices() public IEnumerable<NameIdPair> GetNotificationServices()
{ {
return Ok(_notificationManager.GetNotificationServices()); return _notificationManager.GetNotificationServices();
} }
/// <summary> /// <summary>