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:
@@ -5,5 +5,6 @@ namespace Govor.Application.Interfaces.Friends;
|
||||
public interface IFriendshipService
|
||||
{
|
||||
Task<List<User>> GetFriendsAsync(Guid userId);
|
||||
Task<List<User>> GetPotentialFriendsAsync(Guid userId);
|
||||
Task<List<User>> SearchUsersAsync(string query, Guid currentId);
|
||||
}
|
||||
@@ -4,6 +4,6 @@ namespace Govor.Application.Interfaces;
|
||||
|
||||
public interface IMessagesLoader
|
||||
{
|
||||
Task<List<Message>> LoadMessagesInUserChat(Guid userId,Guid currentId, Guid? startMessageId, int before = 20, int after = 2);
|
||||
Task<List<Message>> LoadMessagesInUserChat(Guid privateChatId,Guid currentId, Guid? startMessageId, int before = 20, int after = 2);
|
||||
Task<List<Message>> LoadMessagesInChatGroup(Guid chatId,Guid currentId, Guid? startMessageId, int before = 20, int after = 2);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace Govor.Application.Interfaces;
|
||||
|
||||
public interface ISynchingService
|
||||
{
|
||||
/// <summary>
|
||||
/// Brings all line breaks (CRLF, CR) to a single LF(\n) standard.
|
||||
/// </summary>
|
||||
/// <param name="input">The original line containing the line break.</param>
|
||||
/// <returns>A string normalized using only \n.</returns>
|
||||
string NormalizeNewlines(string input);
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@ using Govor.Core.Models;
|
||||
|
||||
namespace Govor.Application.Interfaces;
|
||||
|
||||
public interface IUserGroupsService
|
||||
public interface IUserGroupsGetterService
|
||||
{
|
||||
Task<List<ChatGroup>> GetUserGroupsAsync(Guid userId);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Govor.Core.Models;
|
||||
|
||||
namespace Govor.Application.Interfaces;
|
||||
|
||||
public interface IUserPrivateChatsGetterService
|
||||
{
|
||||
Task<List<PrivateChat>> GetUserChatsAsync(Guid userId);
|
||||
}
|
||||
@@ -9,6 +9,8 @@ public interface IMediaService
|
||||
public Task DeleteMediaAsync(Guid fileId);
|
||||
public Task<Media> GetMediaByUrlAsync(string url);
|
||||
public Task<Media> GetMediaByIdAsync(Guid mediaId);
|
||||
public Task<bool> HasMediaAsync(Guid mediaId);
|
||||
public Task<bool> HasMediaByUrlAsync(string url);
|
||||
Task AttachToMessageAsync(Guid mediaId, Guid messageId);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,8 +2,9 @@ namespace Govor.Application.Interfaces.UserOnlineStatus;
|
||||
|
||||
public interface IOnlineUserStore
|
||||
{
|
||||
void SetOnlineUser(Guid userId);
|
||||
void SetOfflineUser(Guid userId);
|
||||
bool AddConnection(Guid userId, string connectionId);
|
||||
bool RemoveConnection(Guid userId, string connectionId);
|
||||
bool IsOnline(Guid userId);
|
||||
IEnumerable<string> GetConnections(Guid userId);
|
||||
IReadOnlyCollection<Guid> GetAllOnlineUsers();
|
||||
}
|
||||
Reference in New Issue
Block a user