finish migration to Pilz.NET
This commit is contained in:
22
OwnChar.Server/Api/IOwnCharServer.cs
Normal file
22
OwnChar.Server/Api/IOwnCharServer.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OwnChar.Data.Model.Base;
|
||||
using Pilz.Configuration;
|
||||
using Pilz.Net.Api;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace OwnChar.Server.Api;
|
||||
|
||||
public interface IOwnCharServer : IApiServer
|
||||
{
|
||||
ISettings Settings { get; }
|
||||
DbContext? Data { get; }
|
||||
|
||||
[MemberNotNull(nameof(Data))]
|
||||
void CheckLogin(string secret);
|
||||
|
||||
[MemberNotNullWhen(true, nameof(Data))]
|
||||
bool IsLoggedIn(string secret);
|
||||
|
||||
[MemberNotNullWhen(true, nameof(Data))]
|
||||
UserAccountBase? GetUser(string secret);
|
||||
}
|
||||
Reference in New Issue
Block a user