Compare commits
2 Commits
0b337e362e
...
b2352514ee
| Author | SHA1 | Date | |
|---|---|---|---|
|
b2352514ee
|
|||
|
e43979da54
|
6
.gitignore
vendored
6
.gitignore
vendored
@@ -9,8 +9,6 @@
|
|||||||
*.user
|
*.user
|
||||||
*.userosscache
|
*.userosscache
|
||||||
*.sln.docstates
|
*.sln.docstates
|
||||||
|
|
||||||
# Mac
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||||
@@ -354,3 +352,7 @@ MigrationBackup/
|
|||||||
|
|
||||||
# docker run data
|
# docker run data
|
||||||
Docker/run/data/
|
Docker/run/data/
|
||||||
|
|
||||||
|
**/obj/
|
||||||
|
**/bin/
|
||||||
|
**/.idea/
|
||||||
5
.gitmodules
vendored
5
.gitmodules
vendored
@@ -1,3 +1,4 @@
|
|||||||
[submodule "UmbraAPI"]
|
[submodule "MareAPI"]
|
||||||
path = UmbraAPI
|
path = MareAPI
|
||||||
url = https://git.umbra-sync.net/SirConstance/UmbraAPI.git
|
url = https://git.umbra-sync.net/SirConstance/UmbraAPI.git
|
||||||
|
branch = main
|
||||||
|
|||||||
1
MareAPI
Submodule
1
MareAPI
Submodule
Submodule MareAPI added at fb71135026
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -18,6 +18,18 @@
|
|||||||
</None>
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Remove="appsettings.Development.json" />
|
||||||
|
<Content Remove="appsettings.json" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="appsettings.Development.json" />
|
||||||
|
<None Include="appsettings.json">
|
||||||
|
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="IDisposableAnalyzers" Version="4.0.8">
|
<PackageReference Include="IDisposableAnalyzers" Version="4.0.8">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"Logging": {
|
|
||||||
"LogLevel": {
|
|
||||||
"Default": "Information",
|
|
||||||
"Microsoft.AspNetCore": "Warning"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -5,6 +5,8 @@ VisualStudioVersion = 17.2.32602.215
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MareSynchronosServer", "MareSynchronosServer\MareSynchronosServer.csproj", "{029CA97F-E0BA-4172-A191-EA21FB61AD0F}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MareSynchronosServer", "MareSynchronosServer\MareSynchronosServer.csproj", "{029CA97F-E0BA-4172-A191-EA21FB61AD0F}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MareSynchronos.API", "..\MareAPI\MareSynchronosAPI\MareSynchronos.API.csproj", "{326BFB1B-5571-47A6-8513-1FFDB32D53B0}"
|
||||||
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MareSynchronosShared", "MareSynchronosShared\MareSynchronosShared.csproj", "{67B1461D-E215-4BA8-A64D-E1836724D5E6}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MareSynchronosShared", "MareSynchronosShared\MareSynchronosShared.csproj", "{67B1461D-E215-4BA8-A64D-E1836724D5E6}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MareSynchronosStaticFilesServer", "MareSynchronosStaticFilesServer\MareSynchronosStaticFilesServer.csproj", "{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MareSynchronosStaticFilesServer", "MareSynchronosStaticFilesServer\MareSynchronosStaticFilesServer.csproj", "{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}"
|
||||||
@@ -18,90 +20,36 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MareSynchronosAuthService", "MareSynchronosAuthService\MareSynchronosAuthService.csproj", "{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MareSynchronosAuthService", "MareSynchronosAuthService\MareSynchronosAuthService.csproj", "{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MareSynchronos.API", "..\UmbraAPI\MareSynchronosAPI\MareSynchronos.API.csproj", "{FA97F4D1-8F15-4002-A2C1-70EF1367B879}"
|
|
||||||
EndProject
|
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Debug|x64 = Debug|x64
|
|
||||||
Debug|x86 = Debug|x86
|
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
Release|x64 = Release|x64
|
|
||||||
Release|x86 = Release|x86
|
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Debug|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Debug|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Debug|x86.Build.0 = Debug|Any CPU
|
|
||||||
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Release|Any CPU.Build.0 = Release|Any CPU
|
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Release|x64.ActiveCfg = Release|Any CPU
|
{326BFB1B-5571-47A6-8513-1FFDB32D53B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Release|x64.Build.0 = Release|Any CPU
|
{326BFB1B-5571-47A6-8513-1FFDB32D53B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Release|x86.ActiveCfg = Release|Any CPU
|
{326BFB1B-5571-47A6-8513-1FFDB32D53B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{029CA97F-E0BA-4172-A191-EA21FB61AD0F}.Release|x86.Build.0 = Release|Any CPU
|
{326BFB1B-5571-47A6-8513-1FFDB32D53B0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Debug|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Debug|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Debug|x86.Build.0 = Debug|Any CPU
|
|
||||||
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Release|Any CPU.Build.0 = Release|Any CPU
|
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Release|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Release|x64.Build.0 = Release|Any CPU
|
|
||||||
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Release|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{67B1461D-E215-4BA8-A64D-E1836724D5E6}.Release|x86.Build.0 = Release|Any CPU
|
|
||||||
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Debug|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Debug|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Debug|x86.Build.0 = Debug|Any CPU
|
|
||||||
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Release|Any CPU.Build.0 = Release|Any CPU
|
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Release|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Release|x64.Build.0 = Release|Any CPU
|
|
||||||
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Release|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{3C7F43BB-FE4C-48BC-BF42-D24E70E8FCB7}.Release|x86.Build.0 = Release|Any CPU
|
|
||||||
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Debug|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Debug|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Debug|x86.Build.0 = Debug|Any CPU
|
|
||||||
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Release|Any CPU.Build.0 = Release|Any CPU
|
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Release|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Release|x64.Build.0 = Release|Any CPU
|
|
||||||
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Release|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{E29C8677-AB44-4950-9EB1-D8E70B710A56}.Release|x86.Build.0 = Release|Any CPU
|
|
||||||
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Debug|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Debug|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Debug|x86.Build.0 = Debug|Any CPU
|
|
||||||
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Release|Any CPU.Build.0 = Release|Any CPU
|
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Release|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Release|x64.Build.0 = Release|Any CPU
|
|
||||||
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Release|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{D7D4041C-DCD9-4B7A-B423-0F458DFFF3D6}.Release|x86.Build.0 = Release|Any CPU
|
|
||||||
{FA97F4D1-8F15-4002-A2C1-70EF1367B879}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{FA97F4D1-8F15-4002-A2C1-70EF1367B879}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{FA97F4D1-8F15-4002-A2C1-70EF1367B879}.Debug|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{FA97F4D1-8F15-4002-A2C1-70EF1367B879}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{FA97F4D1-8F15-4002-A2C1-70EF1367B879}.Debug|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{FA97F4D1-8F15-4002-A2C1-70EF1367B879}.Debug|x86.Build.0 = Debug|Any CPU
|
|
||||||
{FA97F4D1-8F15-4002-A2C1-70EF1367B879}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{FA97F4D1-8F15-4002-A2C1-70EF1367B879}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{FA97F4D1-8F15-4002-A2C1-70EF1367B879}.Release|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{FA97F4D1-8F15-4002-A2C1-70EF1367B879}.Release|x64.Build.0 = Release|Any CPU
|
|
||||||
{FA97F4D1-8F15-4002-A2C1-70EF1367B879}.Release|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{FA97F4D1-8F15-4002-A2C1-70EF1367B879}.Release|x86.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<UserSecretsId>aspnet-MareSynchronosServer-BA82A12A-0B30-463C-801D-B7E81318CD50</UserSecretsId>
|
<UserSecretsId>aspnet-MareSynchronosServer-BA82A12A-0B30-463C-801D-B7E81318CD50</UserSecretsId>
|
||||||
<AssemblyVersion>1.1.0.0</AssemblyVersion>
|
<AssemblyVersion>1.1.0.0</AssemblyVersion>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\UmbraAPI\MareSynchronosAPI\MareSynchronos.API.csproj" />
|
<ProjectReference Include="..\..\MareAPI\MareSynchronosAPI\MareSynchronos.API.csproj" />
|
||||||
<ProjectReference Include="..\MareSynchronosShared\MareSynchronosShared.csproj" />
|
<ProjectReference Include="..\MareSynchronosShared\MareSynchronosShared.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\UmbraAPI\MareSynchronosAPI\MareSynchronos.API.csproj" />
|
<ProjectReference Include="..\..\MareAPI\MareSynchronosAPI\MareSynchronos.API.csproj" />
|
||||||
<ProjectReference Include="..\MareSynchronosShared\MareSynchronosShared.csproj" />
|
<ProjectReference Include="..\MareSynchronosShared\MareSynchronosShared.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\UmbraAPI\MareSynchronosAPI\MareSynchronos.API.csproj" />
|
<ProjectReference Include="..\..\MareAPI\MareSynchronosAPI\MareSynchronos.API.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\UmbraAPI\MareSynchronosAPI\MareSynchronos.API.csproj" />
|
<ProjectReference Include="..\..\MareAPI\MareSynchronosAPI\MareSynchronos.API.csproj" />
|
||||||
<ProjectReference Include="..\MareSynchronosShared\MareSynchronosShared.csproj" />
|
<ProjectReference Include="..\MareSynchronosShared\MareSynchronosShared.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,9 @@
|
|||||||
# UmbraServer
|
# UmbraServer
|
||||||
|
|
||||||
|
🇫🇷
|
||||||
|
Ce projet est basé sur Mare Synchronos de DarkArchon. Le code original est sous licence MIT ; voir le fichier
|
||||||
|
LICENSE_MIT pour plus de détails. À partir de ce commit, le code est sous licence AGPL.
|
||||||
|
|
||||||
|
🇬🇧
|
||||||
|
This project is based on Mare Synchronos by DarkArchon. Original code is licensed under the MIT License; see the
|
||||||
|
LICENSE_MIT file for details. From this commit onwards, the code is licensed under AGPL.
|
||||||
350
UmbraAPI/.gitignore
vendored
350
UmbraAPI/.gitignore
vendored
@@ -1,350 +0,0 @@
|
|||||||
## Ignore Visual Studio temporary files, build results, and
|
|
||||||
## files generated by popular Visual Studio add-ons.
|
|
||||||
##
|
|
||||||
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
|
||||||
|
|
||||||
# User-specific files
|
|
||||||
*.rsuser
|
|
||||||
*.suo
|
|
||||||
*.user
|
|
||||||
*.userosscache
|
|
||||||
*.sln.docstates
|
|
||||||
|
|
||||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
|
||||||
*.userprefs
|
|
||||||
|
|
||||||
# Mono auto generated files
|
|
||||||
mono_crash.*
|
|
||||||
|
|
||||||
# Build results
|
|
||||||
[Dd]ebug/
|
|
||||||
[Dd]ebugPublic/
|
|
||||||
[Rr]elease/
|
|
||||||
[Rr]eleases/
|
|
||||||
x64/
|
|
||||||
x86/
|
|
||||||
[Aa][Rr][Mm]/
|
|
||||||
[Aa][Rr][Mm]64/
|
|
||||||
bld/
|
|
||||||
[Bb]in/
|
|
||||||
[Oo]bj/
|
|
||||||
[Ll]og/
|
|
||||||
[Ll]ogs/
|
|
||||||
|
|
||||||
# Visual Studio 2015/2017 cache/options directory
|
|
||||||
.vs/
|
|
||||||
# Uncomment if you have tasks that create the project's static files in wwwroot
|
|
||||||
#wwwroot/
|
|
||||||
|
|
||||||
# Visual Studio 2017 auto generated files
|
|
||||||
Generated\ Files/
|
|
||||||
|
|
||||||
# MSTest test Results
|
|
||||||
[Tt]est[Rr]esult*/
|
|
||||||
[Bb]uild[Ll]og.*
|
|
||||||
|
|
||||||
# NUnit
|
|
||||||
*.VisualState.xml
|
|
||||||
TestResult.xml
|
|
||||||
nunit-*.xml
|
|
||||||
|
|
||||||
# Build Results of an ATL Project
|
|
||||||
[Dd]ebugPS/
|
|
||||||
[Rr]eleasePS/
|
|
||||||
dlldata.c
|
|
||||||
|
|
||||||
# Benchmark Results
|
|
||||||
BenchmarkDotNet.Artifacts/
|
|
||||||
|
|
||||||
# .NET Core
|
|
||||||
project.lock.json
|
|
||||||
project.fragment.lock.json
|
|
||||||
artifacts/
|
|
||||||
|
|
||||||
# StyleCop
|
|
||||||
StyleCopReport.xml
|
|
||||||
|
|
||||||
# Files built by Visual Studio
|
|
||||||
*_i.c
|
|
||||||
*_p.c
|
|
||||||
*_h.h
|
|
||||||
*.ilk
|
|
||||||
*.meta
|
|
||||||
*.obj
|
|
||||||
*.iobj
|
|
||||||
*.pch
|
|
||||||
*.pdb
|
|
||||||
*.ipdb
|
|
||||||
*.pgc
|
|
||||||
*.pgd
|
|
||||||
*.rsp
|
|
||||||
*.sbr
|
|
||||||
*.tlb
|
|
||||||
*.tli
|
|
||||||
*.tlh
|
|
||||||
*.tmp
|
|
||||||
*.tmp_proj
|
|
||||||
*_wpftmp.csproj
|
|
||||||
*.log
|
|
||||||
*.vspscc
|
|
||||||
*.vssscc
|
|
||||||
.builds
|
|
||||||
*.pidb
|
|
||||||
*.svclog
|
|
||||||
*.scc
|
|
||||||
|
|
||||||
# Chutzpah Test files
|
|
||||||
_Chutzpah*
|
|
||||||
|
|
||||||
# Visual C++ cache files
|
|
||||||
ipch/
|
|
||||||
*.aps
|
|
||||||
*.ncb
|
|
||||||
*.opendb
|
|
||||||
*.opensdf
|
|
||||||
*.sdf
|
|
||||||
*.cachefile
|
|
||||||
*.VC.db
|
|
||||||
*.VC.VC.opendb
|
|
||||||
|
|
||||||
# Visual Studio profiler
|
|
||||||
*.psess
|
|
||||||
*.vsp
|
|
||||||
*.vspx
|
|
||||||
*.sap
|
|
||||||
|
|
||||||
# Visual Studio Trace Files
|
|
||||||
*.e2e
|
|
||||||
|
|
||||||
# TFS 2012 Local Workspace
|
|
||||||
$tf/
|
|
||||||
|
|
||||||
# Guidance Automation Toolkit
|
|
||||||
*.gpState
|
|
||||||
|
|
||||||
# ReSharper is a .NET coding add-in
|
|
||||||
_ReSharper*/
|
|
||||||
*.[Rr]e[Ss]harper
|
|
||||||
*.DotSettings.user
|
|
||||||
|
|
||||||
# TeamCity is a build add-in
|
|
||||||
_TeamCity*
|
|
||||||
|
|
||||||
# DotCover is a Code Coverage Tool
|
|
||||||
*.dotCover
|
|
||||||
|
|
||||||
# AxoCover is a Code Coverage Tool
|
|
||||||
.axoCover/*
|
|
||||||
!.axoCover/settings.json
|
|
||||||
|
|
||||||
# Visual Studio code coverage results
|
|
||||||
*.coverage
|
|
||||||
*.coveragexml
|
|
||||||
|
|
||||||
# NCrunch
|
|
||||||
_NCrunch_*
|
|
||||||
.*crunch*.local.xml
|
|
||||||
nCrunchTemp_*
|
|
||||||
|
|
||||||
# MightyMoose
|
|
||||||
*.mm.*
|
|
||||||
AutoTest.Net/
|
|
||||||
|
|
||||||
# Web workbench (sass)
|
|
||||||
.sass-cache/
|
|
||||||
|
|
||||||
# Installshield output folder
|
|
||||||
[Ee]xpress/
|
|
||||||
|
|
||||||
# DocProject is a documentation generator add-in
|
|
||||||
DocProject/buildhelp/
|
|
||||||
DocProject/Help/*.HxT
|
|
||||||
DocProject/Help/*.HxC
|
|
||||||
DocProject/Help/*.hhc
|
|
||||||
DocProject/Help/*.hhk
|
|
||||||
DocProject/Help/*.hhp
|
|
||||||
DocProject/Help/Html2
|
|
||||||
DocProject/Help/html
|
|
||||||
|
|
||||||
# Click-Once directory
|
|
||||||
publish/
|
|
||||||
|
|
||||||
# Publish Web Output
|
|
||||||
*.[Pp]ublish.xml
|
|
||||||
*.azurePubxml
|
|
||||||
# Note: Comment the next line if you want to checkin your web deploy settings,
|
|
||||||
# but database connection strings (with potential passwords) will be unencrypted
|
|
||||||
*.pubxml
|
|
||||||
*.publishproj
|
|
||||||
|
|
||||||
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
|
||||||
# checkin your Azure Web App publish settings, but sensitive information contained
|
|
||||||
# in these scripts will be unencrypted
|
|
||||||
PublishScripts/
|
|
||||||
|
|
||||||
# NuGet Packages
|
|
||||||
*.nupkg
|
|
||||||
# NuGet Symbol Packages
|
|
||||||
*.snupkg
|
|
||||||
# The packages folder can be ignored because of Package Restore
|
|
||||||
**/[Pp]ackages/*
|
|
||||||
# except build/, which is used as an MSBuild target.
|
|
||||||
!**/[Pp]ackages/build/
|
|
||||||
# Uncomment if necessary however generally it will be regenerated when needed
|
|
||||||
#!**/[Pp]ackages/repositories.config
|
|
||||||
# NuGet v3's project.json files produces more ignorable files
|
|
||||||
*.nuget.props
|
|
||||||
*.nuget.targets
|
|
||||||
|
|
||||||
# Microsoft Azure Build Output
|
|
||||||
csx/
|
|
||||||
*.build.csdef
|
|
||||||
|
|
||||||
# Microsoft Azure Emulator
|
|
||||||
ecf/
|
|
||||||
rcf/
|
|
||||||
|
|
||||||
# Windows Store app package directories and files
|
|
||||||
AppPackages/
|
|
||||||
BundleArtifacts/
|
|
||||||
Package.StoreAssociation.xml
|
|
||||||
_pkginfo.txt
|
|
||||||
*.appx
|
|
||||||
*.appxbundle
|
|
||||||
*.appxupload
|
|
||||||
|
|
||||||
# Visual Studio cache files
|
|
||||||
# files ending in .cache can be ignored
|
|
||||||
*.[Cc]ache
|
|
||||||
# but keep track of directories ending in .cache
|
|
||||||
!?*.[Cc]ache/
|
|
||||||
|
|
||||||
# Others
|
|
||||||
ClientBin/
|
|
||||||
~$*
|
|
||||||
*~
|
|
||||||
*.dbmdl
|
|
||||||
*.dbproj.schemaview
|
|
||||||
*.jfm
|
|
||||||
*.pfx
|
|
||||||
*.publishsettings
|
|
||||||
orleans.codegen.cs
|
|
||||||
|
|
||||||
# Including strong name files can present a security risk
|
|
||||||
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
|
||||||
#*.snk
|
|
||||||
|
|
||||||
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
|
||||||
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
|
||||||
#bower_components/
|
|
||||||
|
|
||||||
# RIA/Silverlight projects
|
|
||||||
Generated_Code/
|
|
||||||
|
|
||||||
# Backup & report files from converting an old project file
|
|
||||||
# to a newer Visual Studio version. Backup files are not needed,
|
|
||||||
# because we have git ;-)
|
|
||||||
_UpgradeReport_Files/
|
|
||||||
Backup*/
|
|
||||||
UpgradeLog*.XML
|
|
||||||
UpgradeLog*.htm
|
|
||||||
ServiceFabricBackup/
|
|
||||||
*.rptproj.bak
|
|
||||||
|
|
||||||
# SQL Server files
|
|
||||||
*.mdf
|
|
||||||
*.ldf
|
|
||||||
*.ndf
|
|
||||||
|
|
||||||
# Business Intelligence projects
|
|
||||||
*.rdl.data
|
|
||||||
*.bim.layout
|
|
||||||
*.bim_*.settings
|
|
||||||
*.rptproj.rsuser
|
|
||||||
*- [Bb]ackup.rdl
|
|
||||||
*- [Bb]ackup ([0-9]).rdl
|
|
||||||
*- [Bb]ackup ([0-9][0-9]).rdl
|
|
||||||
|
|
||||||
# Microsoft Fakes
|
|
||||||
FakesAssemblies/
|
|
||||||
|
|
||||||
# GhostDoc plugin setting file
|
|
||||||
*.GhostDoc.xml
|
|
||||||
|
|
||||||
# Node.js Tools for Visual Studio
|
|
||||||
.ntvs_analysis.dat
|
|
||||||
node_modules/
|
|
||||||
|
|
||||||
# Visual Studio 6 build log
|
|
||||||
*.plg
|
|
||||||
|
|
||||||
# Visual Studio 6 workspace options file
|
|
||||||
*.opt
|
|
||||||
|
|
||||||
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
|
||||||
*.vbw
|
|
||||||
|
|
||||||
# Visual Studio LightSwitch build output
|
|
||||||
**/*.HTMLClient/GeneratedArtifacts
|
|
||||||
**/*.DesktopClient/GeneratedArtifacts
|
|
||||||
**/*.DesktopClient/ModelManifest.xml
|
|
||||||
**/*.Server/GeneratedArtifacts
|
|
||||||
**/*.Server/ModelManifest.xml
|
|
||||||
_Pvt_Extensions
|
|
||||||
|
|
||||||
# Paket dependency manager
|
|
||||||
.paket/paket.exe
|
|
||||||
paket-files/
|
|
||||||
|
|
||||||
# FAKE - F# Make
|
|
||||||
.fake/
|
|
||||||
|
|
||||||
# CodeRush personal settings
|
|
||||||
.cr/personal
|
|
||||||
|
|
||||||
# Python Tools for Visual Studio (PTVS)
|
|
||||||
__pycache__/
|
|
||||||
*.pyc
|
|
||||||
|
|
||||||
# Cake - Uncomment if you are using it
|
|
||||||
# tools/**
|
|
||||||
# !tools/packages.config
|
|
||||||
|
|
||||||
# Tabs Studio
|
|
||||||
*.tss
|
|
||||||
|
|
||||||
# Telerik's JustMock configuration file
|
|
||||||
*.jmconfig
|
|
||||||
|
|
||||||
# BizTalk build output
|
|
||||||
*.btp.cs
|
|
||||||
*.btm.cs
|
|
||||||
*.odx.cs
|
|
||||||
*.xsd.cs
|
|
||||||
|
|
||||||
# OpenCover UI analysis results
|
|
||||||
OpenCover/
|
|
||||||
|
|
||||||
# Azure Stream Analytics local run output
|
|
||||||
ASALocalRun/
|
|
||||||
|
|
||||||
# MSBuild Binary and Structured Log
|
|
||||||
*.binlog
|
|
||||||
|
|
||||||
# NVidia Nsight GPU debugger configuration file
|
|
||||||
*.nvuser
|
|
||||||
|
|
||||||
# MFractors (Xamarin productivity tool) working folder
|
|
||||||
.mfractor/
|
|
||||||
|
|
||||||
# Local History for Visual Studio
|
|
||||||
.localhistory/
|
|
||||||
|
|
||||||
# BeatPulse healthcheck temp database
|
|
||||||
healthchecksdb
|
|
||||||
|
|
||||||
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
|
||||||
MigrationBackup/
|
|
||||||
|
|
||||||
# Ionide (cross platform F# VS Code tools) working folder
|
|
||||||
.ionide/
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
using MareSynchronos.API.Data.Enum;
|
|
||||||
using MessagePack;
|
|
||||||
using System.Text.Json.Serialization;
|
|
||||||
using System.Text.Json;
|
|
||||||
using System.Text;
|
|
||||||
using System.Security.Cryptography;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Data;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public class CharacterData
|
|
||||||
{
|
|
||||||
public CharacterData()
|
|
||||||
{
|
|
||||||
DataHash = new(() =>
|
|
||||||
{
|
|
||||||
var json = JsonSerializer.Serialize(this);
|
|
||||||
#pragma warning disable SYSLIB0021 // Type or member is obsolete
|
|
||||||
using SHA256CryptoServiceProvider cryptoProvider = new();
|
|
||||||
#pragma warning restore SYSLIB0021 // Type or member is obsolete
|
|
||||||
return BitConverter.ToString(cryptoProvider.ComputeHash(Encoding.UTF8.GetBytes(json))).Replace("-", "", StringComparison.Ordinal);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public Dictionary<ObjectKind, string> CustomizePlusData { get; set; } = new();
|
|
||||||
[JsonIgnore]
|
|
||||||
public Lazy<string> DataHash { get; }
|
|
||||||
|
|
||||||
public Dictionary<ObjectKind, List<FileReplacementData>> FileReplacements { get; set; } = new();
|
|
||||||
public Dictionary<ObjectKind, string> GlamourerData { get; set; } = new();
|
|
||||||
public string HeelsData { get; set; } = string.Empty;
|
|
||||||
public string HonorificData { get; set; } = string.Empty;
|
|
||||||
public string ManipulationData { get; set; } = string.Empty;
|
|
||||||
public string MoodlesData { get; set; } = string.Empty;
|
|
||||||
public string PetNamesData { get; set; } = string.Empty;
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Data;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record ChatMessage
|
|
||||||
{
|
|
||||||
public string SenderName { get; set; } = string.Empty;
|
|
||||||
public uint SenderHomeWorldId { get; set; } = 0;
|
|
||||||
public byte[] PayloadContent { get; set; } = [];
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
namespace MareSynchronos.API.Data.Comparer;
|
|
||||||
|
|
||||||
public class GroupDataComparer : IEqualityComparer<GroupData>
|
|
||||||
{
|
|
||||||
public static GroupDataComparer Instance => _instance;
|
|
||||||
private static GroupDataComparer _instance = new GroupDataComparer();
|
|
||||||
|
|
||||||
private GroupDataComparer() { }
|
|
||||||
public bool Equals(GroupData? x, GroupData? y)
|
|
||||||
{
|
|
||||||
if (x == null || y == null) return false;
|
|
||||||
return x.GID.Equals(y.GID, StringComparison.Ordinal);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetHashCode(GroupData obj)
|
|
||||||
{
|
|
||||||
return obj.GID.GetHashCode();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
using MareSynchronos.API.Dto.Group;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Data.Comparer;
|
|
||||||
|
|
||||||
|
|
||||||
public class GroupDtoComparer : IEqualityComparer<GroupDto>
|
|
||||||
{
|
|
||||||
public static GroupDtoComparer Instance => _instance;
|
|
||||||
private static GroupDtoComparer _instance = new GroupDtoComparer();
|
|
||||||
|
|
||||||
private GroupDtoComparer() { }
|
|
||||||
|
|
||||||
public bool Equals(GroupDto? x, GroupDto? y)
|
|
||||||
{
|
|
||||||
if (x == null || y == null) return false;
|
|
||||||
return x.GID.Equals(y.GID, StringComparison.Ordinal);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetHashCode(GroupDto obj)
|
|
||||||
{
|
|
||||||
return obj.Group.GID.GetHashCode();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
using MareSynchronos.API.Dto.Group;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Data.Comparer;
|
|
||||||
|
|
||||||
public class GroupPairDtoComparer : IEqualityComparer<GroupPairDto>
|
|
||||||
{
|
|
||||||
public static GroupPairDtoComparer Instance => _instance;
|
|
||||||
private static GroupPairDtoComparer _instance = new();
|
|
||||||
private GroupPairDtoComparer() { }
|
|
||||||
public bool Equals(GroupPairDto? x, GroupPairDto? y)
|
|
||||||
{
|
|
||||||
if (x == null || y == null) return false;
|
|
||||||
return x.GID.Equals(y.GID, StringComparison.Ordinal) && x.UID.Equals(y.UID, StringComparison.Ordinal);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetHashCode(GroupPairDto obj)
|
|
||||||
{
|
|
||||||
return HashCode.Combine(obj.Group.GID.GetHashCode(), obj.User.UID.GetHashCode());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
namespace MareSynchronos.API.Data.Comparer;
|
|
||||||
|
|
||||||
public class UserDataComparer : IEqualityComparer<UserData>
|
|
||||||
{
|
|
||||||
public static UserDataComparer Instance => _instance;
|
|
||||||
private static UserDataComparer _instance = new();
|
|
||||||
|
|
||||||
private UserDataComparer() { }
|
|
||||||
|
|
||||||
public bool Equals(UserData? x, UserData? y)
|
|
||||||
{
|
|
||||||
if (x == null || y == null) return false;
|
|
||||||
return x.UID.Equals(y.UID, StringComparison.Ordinal);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetHashCode(UserData obj)
|
|
||||||
{
|
|
||||||
return obj.UID.GetHashCode();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
using MareSynchronos.API.Dto.User;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Data.Comparer;
|
|
||||||
|
|
||||||
public class UserDtoComparer : IEqualityComparer<UserDto>
|
|
||||||
{
|
|
||||||
public static UserDtoComparer Instance => _instance;
|
|
||||||
private static UserDtoComparer _instance = new();
|
|
||||||
private UserDtoComparer() { }
|
|
||||||
public bool Equals(UserDto? x, UserDto? y)
|
|
||||||
{
|
|
||||||
if (x == null || y == null) return false;
|
|
||||||
return x.User.UID.Equals(y.User.UID, StringComparison.Ordinal);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetHashCode(UserDto obj)
|
|
||||||
{
|
|
||||||
return obj.User.UID.GetHashCode();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
namespace MareSynchronos.API.Data.Enum;
|
|
||||||
|
|
||||||
[Flags]
|
|
||||||
public enum GroupPermissions
|
|
||||||
{
|
|
||||||
NoneSet = 0x0,
|
|
||||||
DisableAnimations = 0x1,
|
|
||||||
DisableSounds = 0x2,
|
|
||||||
DisableInvites = 0x4,
|
|
||||||
DisableVFX = 0x8,
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
namespace MareSynchronos.API.Data.Enum;
|
|
||||||
|
|
||||||
[Flags]
|
|
||||||
public enum GroupUserInfo
|
|
||||||
{
|
|
||||||
None = 0x0,
|
|
||||||
IsModerator = 0x2,
|
|
||||||
IsPinned = 0x4
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
namespace MareSynchronos.API.Data.Enum;
|
|
||||||
|
|
||||||
[Flags]
|
|
||||||
public enum GroupUserPermissions
|
|
||||||
{
|
|
||||||
NoneSet = 0x0,
|
|
||||||
Paused = 0x1,
|
|
||||||
DisableAnimations = 0x2,
|
|
||||||
DisableSounds = 0x4,
|
|
||||||
DisableVFX = 0x8,
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
namespace MareSynchronos.API.Data.Enum;
|
|
||||||
|
|
||||||
public enum MessageSeverity
|
|
||||||
{
|
|
||||||
Information,
|
|
||||||
Warning,
|
|
||||||
Error
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
namespace MareSynchronos.API.Data.Enum;
|
|
||||||
|
|
||||||
public enum ObjectKind
|
|
||||||
{
|
|
||||||
Player = 0,
|
|
||||||
MinionOrMount = 1,
|
|
||||||
Companion = 2,
|
|
||||||
Pet = 3,
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
namespace MareSynchronos.API.Data.Enum;
|
|
||||||
|
|
||||||
[Flags]
|
|
||||||
public enum UserPermissions
|
|
||||||
{
|
|
||||||
NoneSet = 0,
|
|
||||||
Paired = 1,
|
|
||||||
Paused = 2,
|
|
||||||
DisableAnimations = 4,
|
|
||||||
DisableSounds = 8,
|
|
||||||
DisableVFX = 16,
|
|
||||||
}
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
using MareSynchronos.API.Data.Enum;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Data.Extensions;
|
|
||||||
|
|
||||||
public static class GroupPermissionsExtensions
|
|
||||||
{
|
|
||||||
public static bool IsDisableAnimations(this GroupPermissions perm)
|
|
||||||
{
|
|
||||||
return perm.HasFlag(GroupPermissions.DisableAnimations);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsDisableSounds(this GroupPermissions perm)
|
|
||||||
{
|
|
||||||
return perm.HasFlag(GroupPermissions.DisableSounds);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsDisableInvites(this GroupPermissions perm)
|
|
||||||
{
|
|
||||||
return perm.HasFlag(GroupPermissions.DisableInvites);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsDisableVFX(this GroupPermissions perm)
|
|
||||||
{
|
|
||||||
return perm.HasFlag(GroupPermissions.DisableVFX);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetDisableAnimations(this ref GroupPermissions perm, bool set)
|
|
||||||
{
|
|
||||||
if (set) perm |= GroupPermissions.DisableAnimations;
|
|
||||||
else perm &= ~GroupPermissions.DisableAnimations;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetDisableSounds(this ref GroupPermissions perm, bool set)
|
|
||||||
{
|
|
||||||
if (set) perm |= GroupPermissions.DisableSounds;
|
|
||||||
else perm &= ~GroupPermissions.DisableSounds;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetDisableInvites(this ref GroupPermissions perm, bool set)
|
|
||||||
{
|
|
||||||
if (set) perm |= GroupPermissions.DisableInvites;
|
|
||||||
else perm &= ~GroupPermissions.DisableInvites;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetDisableVFX(this ref GroupPermissions perm, bool set)
|
|
||||||
{
|
|
||||||
if (set) perm |= GroupPermissions.DisableVFX;
|
|
||||||
else perm &= ~GroupPermissions.DisableVFX;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
using MareSynchronos.API.Data.Enum;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Data.Extensions;
|
|
||||||
|
|
||||||
public static class GroupUserInfoExtensions
|
|
||||||
{
|
|
||||||
public static bool IsModerator(this GroupUserInfo info)
|
|
||||||
{
|
|
||||||
return info.HasFlag(GroupUserInfo.IsModerator);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsPinned(this GroupUserInfo info)
|
|
||||||
{
|
|
||||||
return info.HasFlag(GroupUserInfo.IsPinned);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetModerator(this ref GroupUserInfo info, bool isModerator)
|
|
||||||
{
|
|
||||||
if (isModerator) info |= GroupUserInfo.IsModerator;
|
|
||||||
else info &= ~GroupUserInfo.IsModerator;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetPinned(this ref GroupUserInfo info, bool isPinned)
|
|
||||||
{
|
|
||||||
if (isPinned) info |= GroupUserInfo.IsPinned;
|
|
||||||
else info &= ~GroupUserInfo.IsPinned;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
using MareSynchronos.API.Data.Enum;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Data.Extensions;
|
|
||||||
|
|
||||||
public static class GroupUserPermissionsExtensions
|
|
||||||
{
|
|
||||||
public static bool IsDisableAnimations(this GroupUserPermissions perm)
|
|
||||||
{
|
|
||||||
return perm.HasFlag(GroupUserPermissions.DisableAnimations);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsDisableSounds(this GroupUserPermissions perm)
|
|
||||||
{
|
|
||||||
return perm.HasFlag(GroupUserPermissions.DisableSounds);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsPaused(this GroupUserPermissions perm)
|
|
||||||
{
|
|
||||||
return perm.HasFlag(GroupUserPermissions.Paused);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsDisableVFX(this GroupUserPermissions perm)
|
|
||||||
{
|
|
||||||
return perm.HasFlag(GroupUserPermissions.DisableVFX);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetDisableAnimations(this ref GroupUserPermissions perm, bool set)
|
|
||||||
{
|
|
||||||
if (set) perm |= GroupUserPermissions.DisableAnimations;
|
|
||||||
else perm &= ~GroupUserPermissions.DisableAnimations;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetDisableSounds(this ref GroupUserPermissions perm, bool set)
|
|
||||||
{
|
|
||||||
if (set) perm |= GroupUserPermissions.DisableSounds;
|
|
||||||
else perm &= ~GroupUserPermissions.DisableSounds;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetPaused(this ref GroupUserPermissions perm, bool set)
|
|
||||||
{
|
|
||||||
if (set) perm |= GroupUserPermissions.Paused;
|
|
||||||
else perm &= ~GroupUserPermissions.Paused;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetDisableVFX(this ref GroupUserPermissions perm, bool set)
|
|
||||||
{
|
|
||||||
if (set) perm |= GroupUserPermissions.DisableVFX;
|
|
||||||
else perm &= ~GroupUserPermissions.DisableVFX;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
using MareSynchronos.API.Data.Enum;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Data.Extensions;
|
|
||||||
|
|
||||||
public static class UserPermissionsExtensions
|
|
||||||
{
|
|
||||||
public static bool IsPaired(this UserPermissions perm)
|
|
||||||
{
|
|
||||||
return perm.HasFlag(UserPermissions.Paired);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsPaused(this UserPermissions perm)
|
|
||||||
{
|
|
||||||
return perm.HasFlag(UserPermissions.Paused);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsDisableAnimations(this UserPermissions perm)
|
|
||||||
{
|
|
||||||
return perm.HasFlag(UserPermissions.DisableAnimations);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsDisableSounds(this UserPermissions perm)
|
|
||||||
{
|
|
||||||
return perm.HasFlag(UserPermissions.DisableSounds);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsDisableVFX(this UserPermissions perm)
|
|
||||||
{
|
|
||||||
return perm.HasFlag(UserPermissions.DisableVFX);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetPaired(this ref UserPermissions perm, bool paired)
|
|
||||||
{
|
|
||||||
if (paired) perm |= UserPermissions.Paired;
|
|
||||||
else perm &= ~UserPermissions.Paired;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetPaused(this ref UserPermissions perm, bool paused)
|
|
||||||
{
|
|
||||||
if (paused) perm |= UserPermissions.Paused;
|
|
||||||
else perm &= ~UserPermissions.Paused;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetDisableAnimations(this ref UserPermissions perm, bool set)
|
|
||||||
{
|
|
||||||
if (set) perm |= UserPermissions.DisableAnimations;
|
|
||||||
else perm &= ~UserPermissions.DisableAnimations;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetDisableSounds(this ref UserPermissions perm, bool set)
|
|
||||||
{
|
|
||||||
if (set) perm |= UserPermissions.DisableSounds;
|
|
||||||
else perm &= ~UserPermissions.DisableSounds;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SetDisableVFX(this ref UserPermissions perm, bool set)
|
|
||||||
{
|
|
||||||
if (set) perm |= UserPermissions.DisableVFX;
|
|
||||||
else perm &= ~UserPermissions.DisableVFX;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
using MessagePack;
|
|
||||||
using System.Text.Json.Serialization;
|
|
||||||
using System.Text.Json;
|
|
||||||
using System.Text;
|
|
||||||
using System.Security.Cryptography;
|
|
||||||
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Data;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public class FileReplacementData
|
|
||||||
{
|
|
||||||
public FileReplacementData()
|
|
||||||
{
|
|
||||||
DataHash = new(() =>
|
|
||||||
{
|
|
||||||
var json = JsonSerializer.Serialize(this);
|
|
||||||
#pragma warning disable SYSLIB0021 // Type or member is obsolete
|
|
||||||
using SHA256CryptoServiceProvider cryptoProvider = new();
|
|
||||||
#pragma warning restore SYSLIB0021 // Type or member is obsolete
|
|
||||||
return BitConverter.ToString(cryptoProvider.ComputeHash(Encoding.UTF8.GetBytes(json))).Replace("-", "", StringComparison.Ordinal);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public Lazy<string> DataHash { get; }
|
|
||||||
public string[] GamePaths { get; set; } = Array.Empty<string>();
|
|
||||||
public string Hash { get; set; } = string.Empty;
|
|
||||||
public string FileSwapPath { get; set; } = string.Empty;
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Data;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record GroupData(string GID, string? Alias = null)
|
|
||||||
{
|
|
||||||
[IgnoreMember]
|
|
||||||
public string AliasOrGID => string.IsNullOrWhiteSpace(Alias) ? GID : Alias;
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Data;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record SignedChatMessage(ChatMessage Message, UserData Sender) : ChatMessage(Message)
|
|
||||||
{
|
|
||||||
// Sender and timestamp are set by the server
|
|
||||||
public UserData Sender { get; set; } = Sender;
|
|
||||||
public long Timestamp { get; set; } = 0;
|
|
||||||
// Signature is generated by the server as SHA256(Sender.UID | Timestamp | Destination | Message)
|
|
||||||
// Where Destination is either the receiver's UID, or the group GID
|
|
||||||
public string Signature { get; set; } = string.Empty;
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Data;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record UserData(string UID, string? Alias = null)
|
|
||||||
{
|
|
||||||
[IgnoreMember]
|
|
||||||
public string AliasOrUID => string.IsNullOrWhiteSpace(Alias) ? UID : Alias;
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Account;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record RegisterReplyDto
|
|
||||||
{
|
|
||||||
public bool Success { get; set; } = false;
|
|
||||||
public string ErrorMessage { get; set; } = string.Empty;
|
|
||||||
public string UID { get; set; } = string.Empty;
|
|
||||||
public string SecretKey { get; set; } = string.Empty;
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
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; }
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
namespace MareSynchronos.API.Dto.CharaData;
|
|
||||||
|
|
||||||
public enum AccessTypeDto
|
|
||||||
{
|
|
||||||
Individuals,
|
|
||||||
ClosePairs,
|
|
||||||
AllPairs,
|
|
||||||
Public
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.CharaData;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record CharaDataDownloadDto(string Id, UserData Uploader) : CharaDataDto(Id, Uploader)
|
|
||||||
{
|
|
||||||
public string GlamourerData { get; init; } = string.Empty;
|
|
||||||
public string CustomizeData { get; init; } = string.Empty;
|
|
||||||
public string ManipulationData { get; set; } = string.Empty;
|
|
||||||
public List<GamePathEntry> FileGamePaths { get; init; } = [];
|
|
||||||
public List<GamePathEntry> FileSwaps { get; init; } = [];
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.CharaData;
|
|
||||||
|
|
||||||
public record CharaDataDto(string Id, UserData Uploader)
|
|
||||||
{
|
|
||||||
public string Description { get; init; } = string.Empty;
|
|
||||||
public DateTime UpdatedDate { get; init; }
|
|
||||||
}
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.CharaData;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record CharaDataFullDto(string Id, UserData Uploader) : CharaDataDto(Id, Uploader)
|
|
||||||
{
|
|
||||||
public DateTime CreatedDate { get; init; }
|
|
||||||
public DateTime ExpiryDate { get; set; }
|
|
||||||
public string GlamourerData { get; set; } = string.Empty;
|
|
||||||
public string CustomizeData { get; set; } = string.Empty;
|
|
||||||
public string ManipulationData { get; set; } = string.Empty;
|
|
||||||
public int DownloadCount { get; set; } = 0;
|
|
||||||
public List<UserData> AllowedUsers { get; set; } = [];
|
|
||||||
public List<GroupData> AllowedGroups { get; set; } = [];
|
|
||||||
public List<GamePathEntry> FileGamePaths { get; set; } = [];
|
|
||||||
public List<GamePathEntry> FileSwaps { get; set; } = [];
|
|
||||||
public List<GamePathEntry> OriginalFiles { get; set; } = [];
|
|
||||||
public AccessTypeDto AccessType { get; set; }
|
|
||||||
public ShareTypeDto ShareType { get; set; }
|
|
||||||
public List<PoseEntry> PoseData { get; set; } = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record GamePathEntry(string HashOrFileSwap, string GamePath);
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record PoseEntry(long? Id)
|
|
||||||
{
|
|
||||||
public string? Description { get; set; } = string.Empty;
|
|
||||||
public string? PoseData { get; set; } = string.Empty;
|
|
||||||
public WorldData? WorldData { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[MessagePackObject]
|
|
||||||
public record struct WorldData
|
|
||||||
{
|
|
||||||
[Key(0)] public LocationInfo LocationInfo { 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; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[MessagePackObject]
|
|
||||||
public record struct LocationInfo
|
|
||||||
{
|
|
||||||
[Key(0)] public uint ServerId { get; set; }
|
|
||||||
[Key(1)] public uint MapId { get; set; }
|
|
||||||
[Key(2)] public uint TerritoryId { get; set; }
|
|
||||||
[Key(3)] public uint DivisionId { get; set; }
|
|
||||||
[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; }
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.CharaData;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record CharaDataMetaInfoDto(string Id, UserData Uploader) : CharaDataDto(Id, Uploader)
|
|
||||||
{
|
|
||||||
public bool CanBeDownloaded { get; init; }
|
|
||||||
public List<PoseEntry> PoseData { get; set; } = [];
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.CharaData;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record CharaDataUpdateDto(string Id)
|
|
||||||
{
|
|
||||||
public string? Description { get; set; }
|
|
||||||
public DateTime? ExpiryDate { get; set; }
|
|
||||||
public string? GlamourerData { get; set; }
|
|
||||||
public string? CustomizeData { get; set; }
|
|
||||||
public string? ManipulationData { get; set; }
|
|
||||||
public List<string>? AllowedUsers { get; set; }
|
|
||||||
public List<string>? AllowedGroups { get; set; }
|
|
||||||
public List<GamePathEntry>? FileGamePaths { get; set; }
|
|
||||||
public List<GamePathEntry>? FileSwaps { get; set; }
|
|
||||||
public AccessTypeDto? AccessType { get; set; }
|
|
||||||
public ShareTypeDto? ShareType { get; set; }
|
|
||||||
public List<PoseEntry>? Poses { get; set; }
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
namespace MareSynchronos.API.Dto.CharaData;
|
|
||||||
|
|
||||||
public enum ShareTypeDto
|
|
||||||
{
|
|
||||||
Private,
|
|
||||||
Shared
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MareSynchronos.API.Dto.Group;
|
|
||||||
using MareSynchronos.API.Dto.User;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Chat;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record GroupChatMsgDto(GroupDto Group, SignedChatMessage Message)
|
|
||||||
{
|
|
||||||
public GroupDto Group = Group;
|
|
||||||
public SignedChatMessage Message = Message;
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MareSynchronos.API.Dto.User;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Chat;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record UserChatMsgDto(SignedChatMessage Message)
|
|
||||||
{
|
|
||||||
public SignedChatMessage Message = Message;
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record ConnectionDto(UserData User)
|
|
||||||
{
|
|
||||||
public Version CurrentClientVersion { get; set; } = new(0, 0, 0);
|
|
||||||
public int ServerVersion { get; set; }
|
|
||||||
public bool IsAdmin { get; set; }
|
|
||||||
public bool IsModerator { get; set; }
|
|
||||||
public ServerInfo ServerInfo { get; set; } = new();
|
|
||||||
}
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record ServerInfo
|
|
||||||
{
|
|
||||||
public string ShardName { get; set; } = string.Empty;
|
|
||||||
public int MaxGroupUserCount { get; set; }
|
|
||||||
public int MaxGroupsCreatedByUser { get; set; }
|
|
||||||
public int MaxGroupsJoinedByUser { get; set; }
|
|
||||||
public Uri FileServerAddress { get; set; } = new Uri("http://nonemptyuri");
|
|
||||||
public int MaxCharaData { get; set; }
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Files;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record DownloadFileDto : ITransferFileDto
|
|
||||||
{
|
|
||||||
public bool FileExists { get; set; } = true;
|
|
||||||
public string Hash { get; set; } = string.Empty;
|
|
||||||
public string Url { get; set; } = string.Empty;
|
|
||||||
public long Size { get; set; } = 0;
|
|
||||||
public bool IsForbidden { get; set; } = false;
|
|
||||||
public string ForbiddenBy { get; set; } = string.Empty;
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Files;
|
|
||||||
|
|
||||||
public class FilesSendDto
|
|
||||||
{
|
|
||||||
public List<string> FileHashes { get; set; } = new();
|
|
||||||
public List<string> UIDs { get; set; } = new();
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
namespace MareSynchronos.API.Dto.Files;
|
|
||||||
|
|
||||||
public interface ITransferFileDto
|
|
||||||
{
|
|
||||||
string Hash { get; set; }
|
|
||||||
bool IsForbidden { get; set; }
|
|
||||||
string ForbiddenBy { get; set; }
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Files;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record UploadFileDto : ITransferFileDto
|
|
||||||
{
|
|
||||||
public string Hash { get; set; } = string.Empty;
|
|
||||||
public bool IsForbidden { get; set; } = false;
|
|
||||||
public string ForbiddenBy { get; set; } = string.Empty;
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Group;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record BannedGroupUserDto : GroupPairDto
|
|
||||||
{
|
|
||||||
public BannedGroupUserDto(GroupData group, UserData user, string reason, DateTime bannedOn, string bannedBy) : base(group, user)
|
|
||||||
{
|
|
||||||
Reason = reason;
|
|
||||||
BannedOn = bannedOn;
|
|
||||||
BannedBy = bannedBy;
|
|
||||||
}
|
|
||||||
|
|
||||||
public string Reason { get; set; }
|
|
||||||
public DateTime BannedOn { get; set; }
|
|
||||||
public string BannedBy { get; set; }
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Group;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record GroupDto(GroupData Group)
|
|
||||||
{
|
|
||||||
public GroupData Group { get; set; } = Group;
|
|
||||||
public string GID => Group.GID;
|
|
||||||
public string? GroupAlias => Group.Alias;
|
|
||||||
public string GroupAliasOrGID => Group.AliasOrGID;
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MareSynchronos.API.Data.Enum;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Group;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record GroupFullInfoDto(GroupData Group, UserData Owner, GroupPermissions GroupPermissions, GroupUserPermissions GroupUserPermissions, GroupUserInfo GroupUserInfo) : GroupInfoDto(Group, Owner, GroupPermissions)
|
|
||||||
{
|
|
||||||
public GroupUserPermissions GroupUserPermissions { get; set; } = GroupUserPermissions;
|
|
||||||
public GroupUserInfo GroupUserInfo { get; set; } = GroupUserInfo;
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MareSynchronos.API.Data.Enum;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Group;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record GroupInfoDto(GroupData Group, UserData Owner, GroupPermissions GroupPermissions) : GroupDto(Group)
|
|
||||||
{
|
|
||||||
public GroupPermissions GroupPermissions { get; set; } = GroupPermissions;
|
|
||||||
public UserData Owner { get; set; } = Owner;
|
|
||||||
|
|
||||||
public string OwnerUID => Owner.UID;
|
|
||||||
public string? OwnerAlias => Owner.Alias;
|
|
||||||
public string OwnerAliasOrUID => Owner.AliasOrUID;
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Group;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record GroupPairDto(GroupData Group, UserData User) : GroupDto(Group)
|
|
||||||
{
|
|
||||||
public string UID => User.UID;
|
|
||||||
public string? UserAlias => User.Alias;
|
|
||||||
public string UserAliasOrUID => User.AliasOrUID;
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MareSynchronos.API.Data.Enum;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Group;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record GroupPairFullInfoDto(GroupData Group, UserData User, GroupUserInfo GroupPairStatusInfo, GroupUserPermissions GroupUserPermissions) : GroupPairDto(Group, User)
|
|
||||||
{
|
|
||||||
public GroupUserInfo GroupPairStatusInfo { get; set; } = GroupPairStatusInfo;
|
|
||||||
public GroupUserPermissions GroupUserPermissions { get; set; } = GroupUserPermissions;
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MareSynchronos.API.Data.Enum;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Group;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record GroupPairUserInfoDto(GroupData Group, UserData User, GroupUserInfo GroupUserInfo) : GroupPairDto(Group, User);
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MareSynchronos.API.Data.Enum;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Group;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record GroupPairUserPermissionDto(GroupData Group, UserData User, GroupUserPermissions GroupPairPermissions) : GroupPairDto(Group, User);
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Group;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record GroupPasswordDto(GroupData Group, string Password) : GroupDto(Group);
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MareSynchronos.API.Data.Enum;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.Group;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record GroupPermissionDto(GroupData Group, GroupPermissions Permissions) : GroupDto(Group);
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record SystemInfoDto
|
|
||||||
{
|
|
||||||
public int OnlineUsers { get; set; }
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.User;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record OnlineUserCharaDataDto(UserData User, CharacterData CharaData) : UserDto(User);
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.User;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record OnlineUserIdentDto(UserData User, string Ident) : UserDto(User);
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.User;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record UserCharaDataMessageDto(List<UserData> Recipients, CharacterData CharaData);
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.User;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record UserDto(UserData User);
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MareSynchronos.API.Data.Enum;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.User;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record UserPairDto(UserData User, UserPermissions OwnPermissions, UserPermissions OtherPermissions) : UserDto(User)
|
|
||||||
{
|
|
||||||
public UserPermissions OwnPermissions { get; set; } = OwnPermissions;
|
|
||||||
public UserPermissions OtherPermissions { get; set; } = OtherPermissions;
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MareSynchronos.API.Data.Enum;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.User;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record UserPermissionsDto(UserData User, UserPermissions Permissions) : UserDto(User);
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
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);
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
using MareSynchronos.API.Data;
|
|
||||||
using MessagePack;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.Dto.User;
|
|
||||||
|
|
||||||
[MessagePackObject(keyAsPropertyName: true)]
|
|
||||||
public record UserProfileReportDto(UserData User, string ProfileReport) : UserDto(User);
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
|
||||||
<Nullable>enable</Nullable>
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="MessagePack.Annotations" Version="2.5.198" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio Version 17
|
|
||||||
VisualStudioVersion = 17.2.32602.215
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MareSynchronos.API", "MareSynchronos.API.csproj", "{CD05EE19-802F-4490-AAD8-CAD4BF1D630D}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{CD05EE19-802F-4490-AAD8-CAD4BF1D630D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{CD05EE19-802F-4490-AAD8-CAD4BF1D630D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{CD05EE19-802F-4490-AAD8-CAD4BF1D630D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{CD05EE19-802F-4490-AAD8-CAD4BF1D630D}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
SolutionGuid = {DFB70C71-AB27-468D-A08B-218CA79BF69D}
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
namespace MareSynchronos.API.Routes;
|
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
namespace MareSynchronos.API.Routes;
|
|
||||||
|
|
||||||
public class MareFiles
|
|
||||||
{
|
|
||||||
public const string Cache = "/cache";
|
|
||||||
public const string Cache_Get = "get";
|
|
||||||
|
|
||||||
public const string Request = "/request";
|
|
||||||
public const string Request_Cancel = "cancel";
|
|
||||||
public const string Request_Check = "check";
|
|
||||||
public const string Request_Enqueue = "enqueue";
|
|
||||||
public const string Request_RequestFile = "file";
|
|
||||||
|
|
||||||
public const string ServerFiles = "/files";
|
|
||||||
public const string ServerFiles_DeleteAll = "deleteAll";
|
|
||||||
public const string ServerFiles_FilesSend = "filesSend";
|
|
||||||
public const string ServerFiles_GetSizes = "getFileSizes";
|
|
||||||
public const string ServerFiles_Upload = "upload";
|
|
||||||
public const string ServerFiles_UploadRaw = "uploadRaw";
|
|
||||||
public const string ServerFiles_UploadMunged = "uploadMunged";
|
|
||||||
|
|
||||||
public const string Distribution = "/dist";
|
|
||||||
public const string Distribution_Get = "get";
|
|
||||||
|
|
||||||
public const string Main = "/main";
|
|
||||||
public const string Main_SendReady = "sendReady";
|
|
||||||
|
|
||||||
public static Uri CacheGetFullPath(Uri baseUri, Guid requestId) => new(baseUri, Cache + "/" + Cache_Get + "?requestId=" + requestId.ToString());
|
|
||||||
|
|
||||||
public static Uri RequestCancelFullPath(Uri baseUri, Guid guid) => new Uri(baseUri, Request + "/" + Request_Cancel + "?requestId=" + guid.ToString());
|
|
||||||
public static Uri RequestCheckQueueFullPath(Uri baseUri, Guid guid) => new Uri(baseUri, Request + "/" + Request_Check + "?requestId=" + guid.ToString());
|
|
||||||
public static Uri RequestEnqueueFullPath(Uri baseUri) => new(baseUri, Request + "/" + Request_Enqueue);
|
|
||||||
public static Uri RequestRequestFileFullPath(Uri baseUri, string hash) => new(baseUri, Request + "/" + Request_RequestFile + "?file=" + hash);
|
|
||||||
|
|
||||||
public static Uri ServerFilesDeleteAllFullPath(Uri baseUri) => new(baseUri, ServerFiles + "/" + ServerFiles_DeleteAll);
|
|
||||||
public static Uri ServerFilesFilesSendFullPath(Uri baseUri) => new(baseUri, ServerFiles + "/" + ServerFiles_FilesSend);
|
|
||||||
public static Uri ServerFilesGetSizesFullPath(Uri baseUri) => new(baseUri, ServerFiles + "/" + ServerFiles_GetSizes);
|
|
||||||
public static Uri ServerFilesUploadFullPath(Uri baseUri, string hash) => new(baseUri, ServerFiles + "/" + ServerFiles_Upload + "/" + hash);
|
|
||||||
public static Uri ServerFilesUploadRawFullPath(Uri baseUri, string hash) => new(baseUri, ServerFiles + "/" + ServerFiles_UploadRaw + "/" + hash);
|
|
||||||
public static Uri ServerFilesUploadMunged(Uri baseUri, string hash) => new(baseUri, ServerFiles + "/" + ServerFiles_UploadMunged + "/" + hash);
|
|
||||||
|
|
||||||
public static Uri DistributionGetFullPath(Uri baseUri, string hash) => new(baseUri, Distribution + "/" + Distribution_Get + "?file=" + hash);
|
|
||||||
|
|
||||||
public static Uri MainSendReadyFullPath(Uri baseUri, string uid, Guid request) => new(baseUri, Main + "/" + Main_SendReady + "/" + "?uid=" + uid + "&requestId=" + request.ToString());
|
|
||||||
}
|
|
||||||
@@ -1,144 +0,0 @@
|
|||||||
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;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.SignalR;
|
|
||||||
|
|
||||||
public interface IMareHub
|
|
||||||
{
|
|
||||||
const int ApiVersion = 1026;
|
|
||||||
const string Path = "/mare";
|
|
||||||
|
|
||||||
Task<bool> CheckClientHealth();
|
|
||||||
|
|
||||||
Task Client_DownloadReady(Guid requestId);
|
|
||||||
|
|
||||||
Task Client_GroupChangePermissions(GroupPermissionDto groupPermission);
|
|
||||||
|
|
||||||
Task Client_GroupChatMsg(GroupChatMsgDto groupChatMsgDto);
|
|
||||||
|
|
||||||
Task Client_GroupDelete(GroupDto groupDto);
|
|
||||||
|
|
||||||
Task Client_GroupPairChangePermissions(GroupPairUserPermissionDto permissionDto);
|
|
||||||
|
|
||||||
Task Client_GroupPairChangeUserInfo(GroupPairUserInfoDto userInfo);
|
|
||||||
|
|
||||||
Task Client_GroupPairJoined(GroupPairFullInfoDto groupPairInfoDto);
|
|
||||||
|
|
||||||
Task Client_GroupPairLeft(GroupPairDto groupPairDto);
|
|
||||||
|
|
||||||
Task Client_GroupSendFullInfo(GroupFullInfoDto groupInfo);
|
|
||||||
|
|
||||||
Task Client_GroupSendInfo(GroupInfoDto groupInfo);
|
|
||||||
|
|
||||||
Task Client_ReceiveServerMessage(MessageSeverity messageSeverity, string message);
|
|
||||||
|
|
||||||
Task Client_UpdateSystemInfo(SystemInfoDto systemInfo);
|
|
||||||
|
|
||||||
Task Client_UserAddClientPair(UserPairDto dto);
|
|
||||||
|
|
||||||
Task Client_UserChatMsg(UserChatMsgDto chatMsgDto);
|
|
||||||
|
|
||||||
Task Client_UserReceiveCharacterData(OnlineUserCharaDataDto dataDto);
|
|
||||||
|
|
||||||
Task Client_UserReceiveUploadStatus(UserDto dto);
|
|
||||||
|
|
||||||
Task Client_UserRemoveClientPair(UserDto dto);
|
|
||||||
|
|
||||||
Task Client_UserSendOffline(UserDto dto);
|
|
||||||
|
|
||||||
Task Client_UserSendOnline(OnlineUserIdentDto dto);
|
|
||||||
|
|
||||||
Task Client_UserUpdateOtherPairPermissions(UserPermissionsDto dto);
|
|
||||||
|
|
||||||
Task Client_UserUpdateProfile(UserDto dto);
|
|
||||||
|
|
||||||
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);
|
|
||||||
|
|
||||||
Task GroupChangeGroupPermissionState(GroupPermissionDto dto);
|
|
||||||
|
|
||||||
Task GroupChangeIndividualPermissionState(GroupPairUserPermissionDto dto);
|
|
||||||
|
|
||||||
Task GroupChangeOwnership(GroupPairDto groupPair);
|
|
||||||
|
|
||||||
Task<bool> GroupChangePassword(GroupPasswordDto groupPassword);
|
|
||||||
|
|
||||||
Task GroupChatSendMsg(GroupDto group, ChatMessage message);
|
|
||||||
|
|
||||||
Task GroupClear(GroupDto group);
|
|
||||||
|
|
||||||
Task<GroupPasswordDto> GroupCreate();
|
|
||||||
|
|
||||||
Task<List<string>> GroupCreateTempInvite(GroupDto group, int amount);
|
|
||||||
|
|
||||||
Task GroupDelete(GroupDto group);
|
|
||||||
|
|
||||||
Task<List<BannedGroupUserDto>> GroupGetBannedUsers(GroupDto group);
|
|
||||||
|
|
||||||
Task<bool> GroupJoin(GroupPasswordDto passwordedGroup);
|
|
||||||
|
|
||||||
Task GroupLeave(GroupDto group);
|
|
||||||
|
|
||||||
Task GroupRemoveUser(GroupPairDto groupPair);
|
|
||||||
|
|
||||||
Task GroupSetUserInfo(GroupPairUserInfoDto groupPair);
|
|
||||||
|
|
||||||
Task<List<GroupFullInfoDto>> GroupsGetAll();
|
|
||||||
|
|
||||||
Task<List<GroupPairFullInfoDto>> GroupsGetUsersInGroup(GroupDto group);
|
|
||||||
|
|
||||||
Task GroupUnbanUser(GroupPairDto groupPair);
|
|
||||||
Task<int> GroupPrune(GroupDto group, int days, bool execute);
|
|
||||||
|
|
||||||
Task UserAddPair(UserDto user);
|
|
||||||
|
|
||||||
Task UserChatSendMsg(UserDto user, ChatMessage message);
|
|
||||||
|
|
||||||
Task UserDelete();
|
|
||||||
|
|
||||||
Task<List<OnlineUserIdentDto>> UserGetOnlinePairs();
|
|
||||||
|
|
||||||
Task<List<UserPairDto>> UserGetPairedClients();
|
|
||||||
|
|
||||||
Task<UserProfileDto> UserGetProfile(UserDto dto);
|
|
||||||
|
|
||||||
Task UserPushData(UserCharaDataMessageDto dto);
|
|
||||||
|
|
||||||
Task UserRemovePair(UserDto userDto);
|
|
||||||
|
|
||||||
Task UserReportProfile(UserProfileReportDto userDto);
|
|
||||||
|
|
||||||
Task UserSetPairPermissions(UserPermissionsDto userPermissions);
|
|
||||||
|
|
||||||
Task UserSetProfile(UserProfileDto userDescription);
|
|
||||||
|
|
||||||
Task<CharaDataFullDto?> CharaDataCreate();
|
|
||||||
Task<CharaDataFullDto?> CharaDataUpdate(CharaDataUpdateDto updateDto);
|
|
||||||
Task<bool> CharaDataDelete(string id);
|
|
||||||
Task<CharaDataMetaInfoDto?> CharaDataGetMetainfo(string id);
|
|
||||||
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,62 +0,0 @@
|
|||||||
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;
|
|
||||||
|
|
||||||
namespace MareSynchronos.API.SignalR;
|
|
||||||
|
|
||||||
public interface IMareHubClient : IMareHub
|
|
||||||
{
|
|
||||||
void OnDownloadReady(Action<Guid> act);
|
|
||||||
|
|
||||||
void OnGroupChangePermissions(Action<GroupPermissionDto> act);
|
|
||||||
|
|
||||||
void OnGroupChatMsg(Action<GroupChatMsgDto> groupChatMsgDto);
|
|
||||||
|
|
||||||
void OnGroupDelete(Action<GroupDto> act);
|
|
||||||
|
|
||||||
void OnGroupPairChangePermissions(Action<GroupPairUserPermissionDto> act);
|
|
||||||
|
|
||||||
void OnGroupPairChangeUserInfo(Action<GroupPairUserInfoDto> act);
|
|
||||||
|
|
||||||
void OnGroupPairJoined(Action<GroupPairFullInfoDto> act);
|
|
||||||
|
|
||||||
void OnGroupPairLeft(Action<GroupPairDto> act);
|
|
||||||
|
|
||||||
void OnGroupSendFullInfo(Action<GroupFullInfoDto> act);
|
|
||||||
|
|
||||||
void OnGroupSendInfo(Action<GroupInfoDto> act);
|
|
||||||
|
|
||||||
void OnReceiveServerMessage(Action<MessageSeverity, string> act);
|
|
||||||
|
|
||||||
void OnUpdateSystemInfo(Action<SystemInfoDto> act);
|
|
||||||
|
|
||||||
void OnUserAddClientPair(Action<UserPairDto> act);
|
|
||||||
|
|
||||||
void OnUserChatMsg(Action<UserChatMsgDto> chatMsgDto);
|
|
||||||
|
|
||||||
void OnUserReceiveCharacterData(Action<OnlineUserCharaDataDto> act);
|
|
||||||
|
|
||||||
void OnUserReceiveUploadStatus(Action<UserDto> act);
|
|
||||||
|
|
||||||
void OnUserRemoveClientPair(Action<UserDto> act);
|
|
||||||
|
|
||||||
void OnUserSendOffline(Action<UserDto> act);
|
|
||||||
|
|
||||||
void OnUserSendOnline(Action<OnlineUserIdentDto> act);
|
|
||||||
|
|
||||||
void OnUserUpdateOtherPairPermissions(Action<UserPermissionsDto> act);
|
|
||||||
|
|
||||||
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