first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user