This refactor splits the import and export functionality out of the ImportContext and adds an ExportContext. This also introduced separate importer and exporter implementations. Additionally, adding archive, save, scripts, and server files to the final export archive has been implemented at the exporter implementation for each instead of handling it in the context. This should be a good pattern if other files need to be added down the road.
23 lines
No EOL
534 B
C#
23 lines
No EOL
534 B
C#
using LANCommander.SDK.Enums;
|
|
|
|
namespace LANCommander.Server.ImportExport.Models;
|
|
|
|
public class ImportQueueItem
|
|
{
|
|
public Guid Id { get; set; }
|
|
public ImportRecordFlags Type { get; set; }
|
|
public object Record { get; set; }
|
|
public bool Processed { get; set; }
|
|
|
|
public ImportQueueItem(ImportRecordFlags type, object record)
|
|
{
|
|
Type = type;
|
|
Record = record;
|
|
}
|
|
|
|
public ImportQueueItem(Guid id, ImportRecordFlags type, object record)
|
|
{
|
|
Type = type;
|
|
Record = record;
|
|
}
|
|
} |