Some orgnization, and cleanup to come.
This commit is contained in:
17
RelayServer/Services/Core/CoreClientService.cs
Normal file
17
RelayServer/Services/Core/CoreClientService.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace RelayServer.Services;
|
||||
|
||||
public sealed class CoreClientService
|
||||
{
|
||||
public Task<CoreUser?> GetUserByUsernameAsync(string username)
|
||||
{
|
||||
return Task.FromResult<CoreUser?>(username switch
|
||||
{
|
||||
"Keeper317" => new CoreUser("users:keeper317", "Keeper317", true),
|
||||
"Ru_Kira" => new CoreUser("users:ru_kira", "Ru_Kira", true),
|
||||
"Test" => new CoreUser("users:test", "Test", true),
|
||||
_ => null
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public sealed record CoreUser(string Id, string Username, bool Licensed);
|
||||
6
RelayServer/Services/Core/ServerBootstrapService.cs
Normal file
6
RelayServer/Services/Core/ServerBootstrapService.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace RelayServer.Services;
|
||||
|
||||
public class ServerBootstrapService
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user