Cleaned up interfaces. Extracted server state machine trigger handler to seperated classes. Removed legacy code
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using MoonlightServers.ApiServer.Database.Entities;
|
||||
using MoonlightServers.Shared.Http.Requests.Admin.Servers;
|
||||
using MoonlightServers.Shared.Http.Responses.Admin.Servers;
|
||||
using MoonlightServers.Shared.Http.Responses.Client.Servers;
|
||||
using Riok.Mapperly.Abstractions;
|
||||
|
||||
namespace MoonlightServers.ApiServer.Mappers;
|
||||
@@ -20,6 +21,11 @@ public static partial class ServerMapper
|
||||
|
||||
private static partial ServerResponse ToAdminServerResponse_Internal(Server server);
|
||||
|
||||
[MapperIgnoreSource(nameof(CreateServerRequest.Variables))]
|
||||
public static partial Server ToServer(CreateServerRequest request);
|
||||
public static partial void Merge(UpdateServerRequest request, Server server);
|
||||
|
||||
// EF Projections
|
||||
|
||||
public static partial IQueryable<ServerResponse> ProjectToAdminResponse(this IQueryable<Server> servers);
|
||||
}
|
||||
Reference in New Issue
Block a user