add mare profiles
This commit is contained in:
7
MareSynchronosAPI/Dto/User/UserProfileDto.cs
Normal file
7
MareSynchronosAPI/Dto/User/UserProfileDto.cs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
using MareSynchronos.API.Data;
|
||||||
|
using MessagePack;
|
||||||
|
|
||||||
|
namespace MareSynchronos.API.Dto.User;
|
||||||
|
|
||||||
|
[MessagePackObject(keyAsPropertyName: true)]
|
||||||
|
public record UserProfileDto(UserData User, bool Disabled, bool? IsNSFW, string? ProfilePictureBase64, string? Description) : UserDto(User);
|
||||||
7
MareSynchronosAPI/Dto/User/UserProfileReportDto.cs
Normal file
7
MareSynchronosAPI/Dto/User/UserProfileReportDto.cs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
using MareSynchronos.API.Data;
|
||||||
|
using MessagePack;
|
||||||
|
|
||||||
|
namespace MareSynchronos.API.Dto.User;
|
||||||
|
|
||||||
|
[MessagePackObject(keyAsPropertyName: true)]
|
||||||
|
public record UserProfileReportDto(UserData User, string ProfileReport) : UserDto(User);
|
||||||
@@ -48,6 +48,8 @@ public interface IMareHub
|
|||||||
|
|
||||||
Task Client_UserUpdateOtherPairPermissions(UserPermissionsDto dto);
|
Task Client_UserUpdateOtherPairPermissions(UserPermissionsDto dto);
|
||||||
|
|
||||||
|
Task Client_UserUpdateProfile(UserDto dto);
|
||||||
|
|
||||||
Task Client_UserUpdateSelfPairPermissions(UserPermissionsDto dto);
|
Task Client_UserUpdateSelfPairPermissions(UserPermissionsDto dto);
|
||||||
|
|
||||||
Task<ConnectionDto> GetConnectionDto();
|
Task<ConnectionDto> GetConnectionDto();
|
||||||
@@ -94,9 +96,15 @@ public interface IMareHub
|
|||||||
|
|
||||||
Task<List<UserPairDto>> UserGetPairedClients();
|
Task<List<UserPairDto>> UserGetPairedClients();
|
||||||
|
|
||||||
|
Task<UserProfileDto> UserGetProfile(UserDto dto);
|
||||||
|
|
||||||
Task UserPushData(UserCharaDataMessageDto dto);
|
Task UserPushData(UserCharaDataMessageDto dto);
|
||||||
|
|
||||||
Task UserRemovePair(UserDto userDto);
|
Task UserRemovePair(UserDto userDto);
|
||||||
|
|
||||||
|
Task UserReportProfile(UserProfileReportDto userDto);
|
||||||
|
|
||||||
Task UserSetPairPermissions(UserPermissionsDto userPermissions);
|
Task UserSetPairPermissions(UserPermissionsDto userPermissions);
|
||||||
|
|
||||||
|
Task UserSetProfile(UserProfileDto userDescription);
|
||||||
}
|
}
|
||||||
@@ -43,5 +43,7 @@ public interface IMareHubClient : IMareHub
|
|||||||
|
|
||||||
void OnUserUpdateOtherPairPermissions(Action<UserPermissionsDto> act);
|
void OnUserUpdateOtherPairPermissions(Action<UserPermissionsDto> act);
|
||||||
|
|
||||||
|
void OnUserUpdateProfile(Action<UserDto> act);
|
||||||
|
|
||||||
void OnUserUpdateSelfPairPermissions(Action<UserPermissionsDto> act);
|
void OnUserUpdateSelfPairPermissions(Action<UserPermissionsDto> act);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user