mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
18 lines
589 B
C#
18 lines
589 B
C#
using Govor.Core.Models;
|
|
using Govor.Core.Models.Users;
|
|
|
|
namespace Govor.Application.Interfaces;
|
|
|
|
public interface IFriendsService
|
|
{
|
|
Task<List<User>> SearchUsersAsync(string query, Guid currentId);
|
|
Task SendFriendRequestAsync(Guid fromUserId, Guid toUserId);
|
|
Task AcceptFriendRequestAsync(Guid requestId, Guid currentUserId);
|
|
Task RejectFriendRequestAsync(Guid requestId, Guid currentUserId);
|
|
Task<List<User>> GetFriendsAsync(Guid userId);
|
|
Task<List<Friendship>> GetResponsesAsync(Guid userId);
|
|
Task<List<Friendship>> GetIncomingRequestsAsync(Guid userId);
|
|
}
|
|
|
|
|