LANCommander/LANCommander.Launcher.Services/Import/IImporter.cs
Pat Hartl 18bf0f251c Refactor launcher import (again)
Implements a queue-based importer based on the implementation server-side.
2025-12-05 21:04:01 -06:00

13 lines
No EOL
519 B
C#

using LANCommander.SDK.Models.Manifest;
namespace LANCommander.Launcher.Services.Import;
public interface IImporter<TRecord> where TRecord : class
{
void UseContext(ImportContext importContext);
Task<ImportItemInfo<TRecord>> GetImportInfoAsync(TRecord record, BaseManifest manifest);
Task<bool> CanImportAsync(TRecord record);
Task<bool> AddAsync(ImportItemInfo<TRecord> record);
Task<bool> UpdateAsync(ImportItemInfo<TRecord> record);
Task<bool> ExistsAsync(ImportItemInfo<TRecord> record);
}