Compare commits
4 Commits
4d8c380dab
...
b2f4453b79
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b2f4453b79 | ||
|
|
8b77956ec8 | ||
|
|
4e4b2dab17 | ||
|
|
fef2365280 |
11
MareSynchronosAPI/Dto/Account/RegisterReplyV2Dto.cs
Normal file
11
MareSynchronosAPI/Dto/Account/RegisterReplyV2Dto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace MareSynchronos.API.Dto.Account;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record RegisterReplyV2Dto
|
||||
{
|
||||
public bool Success { get; set; } = false;
|
||||
public string ErrorMessage { get; set; } = string.Empty;
|
||||
public string UID { get; set; } = string.Empty;
|
||||
}
|
||||
11
MareSynchronosAPI/Dto/AuthReplyDto.cs
Normal file
11
MareSynchronosAPI/Dto/AuthReplyDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using MareSynchronos.API.Data;
|
||||
using MessagePack;
|
||||
|
||||
namespace MareSynchronos.API.Dto;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record AuthReplyDto
|
||||
{
|
||||
public string Token { get; set; } = string.Empty;
|
||||
public string? WellKnown { get; set; }
|
||||
}
|
||||
@@ -59,4 +59,30 @@ public record struct LocationInfo
|
||||
[Key(4)] public uint WardId { get; set; }
|
||||
[Key(5)] public uint HouseId { get; set; }
|
||||
[Key(6)] public uint RoomId { get; set; }
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public record struct PoseData
|
||||
{
|
||||
[Key(0)] public bool IsDelta { get; set; }
|
||||
[Key(1)] public Dictionary<string, BoneData> Bones { get; set; }
|
||||
[Key(2)] public Dictionary<string, BoneData> MainHand { get; set; }
|
||||
[Key(3)] public Dictionary<string, BoneData> OffHand { get; set; }
|
||||
[Key(4)] public BoneData ModelDifference { get; set; }
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public record struct BoneData
|
||||
{
|
||||
[Key(0)] public bool Exists { get; set; }
|
||||
[Key(1)] public float PositionX { get; set; }
|
||||
[Key(2)] public float PositionY { get; set; }
|
||||
[Key(3)] public float PositionZ { get; set; }
|
||||
[Key(4)] public float RotationX { get; set; }
|
||||
[Key(5)] public float RotationY { get; set; }
|
||||
[Key(6)] public float RotationZ { get; set; }
|
||||
[Key(7)] public float RotationW { get; set; }
|
||||
[Key(8)] public float ScaleX { get; set; }
|
||||
[Key(9)] public float ScaleY { get; set; }
|
||||
[Key(10)] public float ScaleZ { get; set; }
|
||||
}
|
||||
@@ -2,10 +2,13 @@
|
||||
|
||||
public class MareAuth
|
||||
{
|
||||
|
||||
public const string Auth = "/auth";
|
||||
public const string Auth_CreateIdent = "createWithIdent";
|
||||
public const string Auth_CreateIdentV2 = "createWithIdentV2";
|
||||
public const string Auth_Register = "registerNewKey";
|
||||
public const string Auth_RegisterV2 = "registerNewKeyV2";
|
||||
public static Uri AuthFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_CreateIdent);
|
||||
public static Uri AuthV2FullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_CreateIdentV2);
|
||||
public static Uri AuthRegisterFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_Register);
|
||||
public static Uri AuthRegisterV2FullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_RegisterV2);
|
||||
}
|
||||
@@ -59,6 +59,12 @@ public interface IMareHub
|
||||
|
||||
Task Client_UserUpdateSelfPairPermissions(UserPermissionsDto dto);
|
||||
|
||||
Task Client_GposeLobbyJoin(UserData userData);
|
||||
Task Client_GposeLobbyLeave(UserData userData);
|
||||
Task Client_GposeLobbyPushCharacterData(CharaDataDownloadDto charaDownloadDto);
|
||||
Task Client_GposeLobbyPushPoseData(UserData userData, PoseData poseData);
|
||||
Task Client_GposeLobbyPushWorldData(UserData userData, WorldData worldData);
|
||||
|
||||
Task<ConnectionDto> GetConnectionDto();
|
||||
|
||||
Task GroupBanUser(GroupPairDto dto, string reason);
|
||||
@@ -127,4 +133,12 @@ public interface IMareHub
|
||||
Task<CharaDataDownloadDto?> CharaDataDownload(string id);
|
||||
Task<List<CharaDataFullDto>> CharaDataGetOwn();
|
||||
Task<List<CharaDataMetaInfoDto>> CharaDataGetShared();
|
||||
Task<CharaDataFullDto?> CharaDataAttemptRestore(string id);
|
||||
|
||||
Task<string> GposeLobbyCreate();
|
||||
Task<List<UserData>> GposeLobbyJoin(string lobbyId);
|
||||
Task<bool> GposeLobbyLeave();
|
||||
Task GposeLobbyPushCharacterData(CharaDataDownloadDto charaDownloadDto);
|
||||
Task GposeLobbyPushPoseData(PoseData poseData);
|
||||
Task GposeLobbyPushWorldData(WorldData worldData);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
using MareSynchronos.API.Data.Enum;
|
||||
using MareSynchronos.API.Data;
|
||||
using MareSynchronos.API.Data.Enum;
|
||||
using MareSynchronos.API.Dto;
|
||||
using MareSynchronos.API.Dto.CharaData;
|
||||
using MareSynchronos.API.Dto.Chat;
|
||||
using MareSynchronos.API.Dto.Group;
|
||||
using MareSynchronos.API.Dto.User;
|
||||
@@ -51,4 +53,10 @@ public interface IMareHubClient : IMareHub
|
||||
void OnUserUpdateProfile(Action<UserDto> act);
|
||||
|
||||
void OnUserUpdateSelfPairPermissions(Action<UserPermissionsDto> act);
|
||||
|
||||
void OnGposeLobbyJoin(Action<UserData> act);
|
||||
void OnGposeLobbyLeave(Action<UserData> act);
|
||||
void OnGposeLobbyPushCharacterData(Action<CharaDataDownloadDto> act);
|
||||
void OnGposeLobbyPushPoseData(Action<UserData, PoseData> act);
|
||||
void OnGposeLobbyPushWorldData(Action<UserData, WorldData> act);
|
||||
}
|
||||
Reference in New Issue
Block a user