begin new and last rework

This commit is contained in:
2024-07-18 14:44:29 +02:00
parent abfc997ac1
commit 1a976fc9ef
26 changed files with 444 additions and 101 deletions

View File

@@ -0,0 +1,21 @@
using OwnChar.Data;
using OwnChar.Model;
using Pilz.Configuration;
using System.Diagnostics.CodeAnalysis;
namespace OwnChar.ServerNew.Api;
public interface IServer
{
ISettings Settings { get; }
IDataProvider? Data { get; }
[MemberNotNull(nameof(Data))]
void CheckLogin(string secret);
[MemberNotNullWhen(true, nameof(Data))]
bool IsLoggedIn(string secret);
[MemberNotNullWhen(true, nameof(Data))]
UserAccount? GetUser(string secret);
}