...
This commit is contained in:
@@ -113,11 +113,19 @@ namespace HushianWebApp.Service
|
||||
{
|
||||
var response = await _baseController.Get($"{BaseRoute}User/LastOpenChatInCompany/{CompanyID}");
|
||||
if (response.StatusCode==System.Net.HttpStatusCode.OK)
|
||||
return await response.Content.ReadFromJsonAsync<ChatItemDto>();
|
||||
return await response.Content.ReadFromJsonAsync<ChatItemDto?>();
|
||||
|
||||
return null;
|
||||
}
|
||||
public async Task<ChatItemDto?> Getchat(int ChatID)
|
||||
public async Task<(int,int)?> GetLastChat()
|
||||
{
|
||||
var response = await _baseController.Get($"{BaseRoute}User/LastChat");
|
||||
if (response.StatusCode == System.Net.HttpStatusCode.OK)
|
||||
return await response.Content.ReadFromJsonAsync<(int, int)?>();
|
||||
|
||||
return null;
|
||||
}
|
||||
public async Task<ChatItemDto?> Getchat(int ChatID)
|
||||
{
|
||||
var response = await _baseController.Get($"{BaseRoute}User/Chat/{ChatID}");
|
||||
if (response.StatusCode == System.Net.HttpStatusCode.OK)
|
||||
|
||||
Reference in New Issue
Block a user