using AutoMapper; using LANCommander.SDK.Enums; using LANCommander.SDK.Models.Manifest; using LANCommander.Server.ImportExport.Models; using LANCommander.Server.Services; namespace LANCommander.Server.ImportExport.Exporters; public class ServerConsoleExporter(ServerConsoleService serverConsoleService) : BaseExporter { public override async Task GetExportInfoAsync(Data.Models.ServerConsole record) { return new ExportItemInfo { Id = record.Id, Type = ImportExportRecordType.ServerConsole, Name = record.Name, }; } public override bool CanExport(ServerConsole record) => ExportContext.DataRecord is Data.Models.ServerConsole; public override async Task ExportAsync(Guid id) { return await serverConsoleService.GetAsync(id); } }