test to make server

This commit is contained in:
Artemy
2026-02-08 22:30:29 +07:00
parent cc2921d257
commit 0a43e35797
56 changed files with 949 additions and 442 deletions
+2 -12
View File
@@ -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);
}