feature: exports api refactoring
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user