feature: exports api refactoring

This commit is contained in:
Gary Sharp
2025-02-14 13:07:30 +11:00
parent 2c215e4856
commit d3cef11796
15 changed files with 239 additions and 232 deletions
+12 -3
View File
@@ -1,10 +1,19 @@
using System.Collections.Generic;
using Disco.Models.Services.Exporting;
using System.Collections.Generic;
namespace Disco.Models.Exporting
{
public class ExportMetadata<T>
: List<ExportMetadataField<T>> where T : IExportRecord
public class ExportMetadata<O, R>
: List<ExportMetadataField<R>>
where O : IExportOptions
where R : IExportRecord
{
public List<string> IgnoreShortNames { get; } = new List<string>();
public O Options { get; set; }
public ExportMetadata(O options)
{
Options = options;
}
}
}