Synced with other adaptations

This commit is contained in:
2025-10-15 07:47:45 -07:00
parent f607dd494f
commit 752a42affc
24 changed files with 569 additions and 227 deletions

View File

@ -4,6 +4,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace Adaptation.FileHandlers.csv;
@ -59,6 +60,7 @@ public class Description : IDescription, Shared.Properties.IDescription
List<string> results = new()
{
nameof(RDS),
nameof(Reactor),
};
return results;
}
@ -185,6 +187,7 @@ public class Description : IDescription, Shared.Properties.IDescription
MID = logistics.MID,
//
RDS = nameof(RDS),
Reactor = nameof(Reactor),
//
Path = nameof(Path),
};
@ -193,4 +196,16 @@ public class Description : IDescription, Shared.Properties.IDescription
internal static string GetDateFormat() => "MM/dd/yyyy hh:mm:ss tt";
}
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
[JsonSerializable(typeof(Description))]
internal partial class CsvDescriptionSourceGenerationContext : JsonSerializerContext
{
}
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
[JsonSerializable(typeof(Description[]))]
internal partial class CsvDescriptionArraySourceGenerationContext : JsonSerializerContext
{
}