Skip to content
Snippets Groups Projects
IMessageService.cs 452 B
Newer Older
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
esantangelo's avatar
esantangelo committed
using Tsi1.BusinessLayer.Dtos;
using Tsi1.BusinessLayer.Helpers;

namespace Tsi1.BusinessLayer.Interfaces
{
    public interface IMessageService
    {
esantangelo's avatar
esantangelo committed
        Task<ServiceResult<List<MessagePreviewDto>>> GetMessages(int userId, int otherUserId, int tenantId);
esantangelo's avatar
esantangelo committed
        Task<ServiceResult<MessagePreviewDto>> Send(MessageCreateDto newMessage);