feature: saved exports

initial - not feature complete
This commit is contained in:
Gary Sharp
2025-02-09 17:14:04 +11:00
parent 2fce645066
commit ac24055365
35 changed files with 2244 additions and 156 deletions
@@ -17,31 +17,22 @@ namespace Disco.Services.Devices.DeviceFlags
public class DeviceFlagExport : IExport<DeviceFlagExportOptions, DeviceFlagExportRecord>
{
public Guid Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public bool TimestampSuffix { get; set; }
public string Name { get; } = "Device Flag Export";
public DeviceFlagExportOptions Options { get; set; }
public string SuggestedFilenamePrefix { get; } = "DeviceFlagExport";
public string FilenamePrefix { get; } = "DeviceFlagExport";
public string ExcelWorksheetName { get; } = "DeviceFlagExport";
public string ExcelTableName { get; } = "DeviceFlags";
[JsonConstructor]
private DeviceFlagExport()
{
}
public DeviceFlagExport(string name, string description, bool timestampSuffix, DeviceFlagExportOptions options)
public DeviceFlagExport(DeviceFlagExportOptions options)
{
Id = Guid.NewGuid();
Name = name;
Description = description;
TimestampSuffix = timestampSuffix;
Options = options;
}
public DeviceFlagExport(DeviceFlagExportOptions options)
: this("Device Flag Export", null, true, options)
[JsonConstructor]
public DeviceFlagExport()
: this(DeviceFlagExportOptions.DefaultOptions())
{
}