This commit is contained in:
mmrbnjd
2025-07-29 17:07:37 +03:30
parent cb8e8146b5
commit af37d0b85d
5 changed files with 158 additions and 28 deletions

View File

@@ -9,6 +9,11 @@ namespace HushianWebApp.Service
private readonly BaseController _baseController;
const string BaseRoute = "v1/Chat/";
public ChatService(BaseController baseController)
{
_baseController = baseController;
}
//Inbox1
public async Task<List<ChatItemDto>> ChatAwaitingOurResponse()
{
@@ -62,6 +67,12 @@ namespace HushianWebApp.Service
var response = await _baseController.Put($"{BaseRoute}ChatIsFinish/{ChatID}");
return response.IsSuccessStatusCode;
}
public async Task<bool> MarkAsReadChatItemAsync(int ID)
{
var response = await _baseController.Put($"{BaseRoute}MarkAsReadChatItem/{ID}");
return response.IsSuccessStatusCode;
}
}
}