This commit is contained in:
2020-05-15 19:57:07 +00:00
parent fc335c5f72
commit 64848c2a3e
3 changed files with 58 additions and 24 deletions

View File

@@ -50,6 +50,24 @@ namespace AyaNova.Api.Controllers
}
/// <summary>
/// Get count of new notifications waiting
/// </summary>
/// <returns></returns>
[HttpGet("new-count")]
public ActionResult GetNewCount()
{
//STUB: https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/3783
if (serverState.IsClosed)
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
return Ok(ApiOkResponse.Response(69, true));
}
//TODO: See new count case for gist of it
//todo: see the core-notification.txt spec doc for details and
//todo: see seemingly countless Notification related cases for details :)
//------------