15 lines
484 B
C#
15 lines
484 B
C#
using Fitness_core_BE.Models;
|
|
|
|
namespace Fitness_core_BE.Interfaces
|
|
{
|
|
public interface IChatRepo
|
|
{
|
|
Task<Chat?> GetChatByIdAsync(Guid chatId);
|
|
Task<Chat?> GetChatBetweenUsersAsync(Guid userAId, Guid userBId);
|
|
Task CreateChatAsync(Chat chat);
|
|
Task AddMessageAsync(ChatMessages message);
|
|
Task<List<ChatMessages>> GetMessagesAsync(Guid chatId, int skip, int take);
|
|
Task<bool> IsUserInChatAsync(Guid chatId, Guid userId);
|
|
}
|
|
}
|