2020-06-06 23:18:41 +03:00
|
|
|
|
using Chatbot.Api.Domain.Entities;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Chatbot.Api.Domain.Repositories
|
|
|
|
|
{
|
|
|
|
|
public interface IChatRepository
|
|
|
|
|
{
|
|
|
|
|
Task<Chat> CreateChat(Guid sessionId);
|
2020-06-06 23:44:49 +03:00
|
|
|
|
Task Add<T>(T entity) where T : class;
|
2020-06-07 02:38:52 +03:00
|
|
|
|
Task CloseChat(Guid chatId);
|
2020-06-06 23:18:41 +03:00
|
|
|
|
}
|
|
|
|
|
}
|