30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Adaptation.FileHandlers.RsM;
|
|
|
|
public class Detail
|
|
{
|
|
|
|
public string HeaderUniqueId { get; set; }
|
|
[JsonPropertyName("MeritGOF")] public string Merit { get; set; }
|
|
[JsonPropertyName("InferredPoint")] public string Pt { get; set; }
|
|
[JsonPropertyName("R")] public string R { get; set; }
|
|
[JsonPropertyName("Rs")] public string Rs { get; set; }
|
|
[JsonPropertyName("Th")] public string T { get; set; }
|
|
public string UniqueId { get; set; }
|
|
|
|
public override string ToString() => string.Concat(Merit, ";", Pt, ";", R, ";", Rs, ";", T);
|
|
|
|
}
|
|
|
|
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
|
|
[JsonSerializable(typeof(Detail))]
|
|
internal partial class DetailSourceGenerationContext : JsonSerializerContext
|
|
{
|
|
}
|
|
|
|
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
|
|
[JsonSerializable(typeof(Detail[]))]
|
|
internal partial class DetailArraySourceGenerationContext : JsonSerializerContext
|
|
{
|
|
} |