Major API rework for paradigm change (#10)
* start with group permissions implementation * refactor group dto stuff * adjustments to api as necessary from client * more api refactor for UserData * use implicit usings and file scoped namespaces * fix userpermissionsextensions * fix extenions * add more comparers * adjust comparers * remove admin stuff (tbd migration to discord bot) * adjust extensions * code style for api --------- Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
This commit is contained in:
31
MareSynchronosAPI/SignalR/IMareHubClient.cs
Normal file
31
MareSynchronosAPI/SignalR/IMareHubClient.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using MareSynchronos.API.Data.Enum;
|
||||
using MareSynchronos.API.Dto;
|
||||
using MareSynchronos.API.Dto.Files;
|
||||
using MareSynchronos.API.Dto.Group;
|
||||
using MareSynchronos.API.Dto.User;
|
||||
|
||||
namespace MareSynchronos.API.SignalR;
|
||||
|
||||
public interface IMareHubClient : IMareHub
|
||||
{
|
||||
void OnUpdateSystemInfo(Action<SystemInfoDto> act);
|
||||
void OnReceiveServerMessage(Action<MessageSeverity, string> act);
|
||||
void OnDownloadReady(Action<Guid> act);
|
||||
|
||||
void OnUserSendOnline(Action<OnlineUserIdentDto> act);
|
||||
void OnUserSendOffline(Action<UserDto> act);
|
||||
void OnUserAddClientPair(Action<UserPairDto> act);
|
||||
void OnUserRemoveClientPair(Action<UserDto> act);
|
||||
void OnUserUpdateSelfPairPermissions(Action<UserPermissionsDto> act);
|
||||
void OnUserUpdateOtherPairPermissions(Action<UserPermissionsDto> act);
|
||||
void OnUserReceiveCharacterData(Action<OnlineUserCharaDataDto> act);
|
||||
|
||||
void OnGroupSendFullInfo(Action<GroupFullInfoDto> act);
|
||||
void OnGroupSendInfo(Action<GroupInfoDto> act);
|
||||
void OnGroupDelete(Action<GroupDto> act);
|
||||
void OnGroupPairJoined(Action<GroupPairFullInfoDto> act);
|
||||
void OnGroupPairLeft(Action<GroupPairDto> act);
|
||||
void OnGroupChangePermissions(Action<GroupPermissionDto> act);
|
||||
void OnGroupPairChangePermissions(Action<GroupPairUserPermissionDto> act);
|
||||
void OnGroupPairChangeUserInfo(Action<GroupPairUserInfoDto> act);
|
||||
}
|
||||
Reference in New Issue
Block a user