mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
test to make server
This commit is contained in:
@@ -19,17 +19,7 @@ public class User
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
var user = obj as User;
|
||||
|
||||
return Id == user.Id &&
|
||||
Username == user.Username &&
|
||||
Description == user.Description &&
|
||||
PasswordHash == user.PasswordHash &&
|
||||
IconId == user.IconId &&
|
||||
CreatedOn == user.CreatedOn &&
|
||||
WasOnline == user.WasOnline &&
|
||||
InviteId == user.InviteId &&
|
||||
Invite == user.Invite &&
|
||||
SentFriendRequests == user.SentFriendRequests &&
|
||||
ReceivedFriendRequests == user.ReceivedFriendRequests;
|
||||
|
||||
return Id == user.Id;
|
||||
}
|
||||
}
|
||||
@@ -3,4 +3,5 @@ namespace Govor.Core.Repositories.Friendships;
|
||||
public interface IFriendshipsExist
|
||||
{
|
||||
bool Exist(Guid requesterId, Guid addresseeId);
|
||||
bool IsPossibilityOfCreatingFriendship(Guid requesterId, Guid addresseeId);
|
||||
}
|
||||
@@ -6,5 +6,6 @@ public interface IFriendshipsReader
|
||||
{
|
||||
Task<List<Friendship>> GetAllAsync();
|
||||
Task<Friendship> GetByIdAsync(Guid id);
|
||||
Task<Friendship> GetFriendshipAsync(Guid fromUserId, Guid toUserId);
|
||||
Task<List<Friendship>> FindByUserIdAsync(Guid userId);
|
||||
}
|
||||
@@ -7,4 +7,5 @@ public interface IPrivateChatsReader
|
||||
Task<List<PrivateChat>> GetAllAsync();
|
||||
Task<PrivateChat> GetByIdAsync(Guid id);
|
||||
Task<PrivateChat> GetByMembersAsync(Guid memberAId, Guid memberBId);
|
||||
Task<List<PrivateChat>> GetAllOfUser(Guid userId);
|
||||
}
|
||||
Reference in New Issue
Block a user