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 SavePathExporter(SavePathService savePathService) : BaseExporter { public override async Task GetExportInfoAsync(Data.Models.SavePath record) { return new ExportItemInfo { Id = record.Id, Type = ImportExportRecordType.SavePath, Name = record.Path, }; } public override bool CanExport(SavePath record) => ExportContext.DataRecord is Data.Models.Game; public override async Task ExportAsync(Guid id) { return await savePathService.GetAsync(id); } }