This commit is contained in:
@@ -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 :)
|
||||
|
||||
//------------
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user