re-organized configurations
This commit is contained in:
31
Shared/Models/ResultConfiguration.cs
Normal file
31
Shared/Models/ResultConfiguration.cs
Normal file
@ -0,0 +1,31 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace View_by_Distance.Shared.Models;
|
||||
|
||||
public record ResultConfiguration(string DateGroup,
|
||||
string? ModelName,
|
||||
int? NumberOfJitters,
|
||||
int? NumberOfTimesToUpsample,
|
||||
string? PredictorModelName,
|
||||
string ResultAllInOne,
|
||||
int ResultAllInOneSubdirectoryLength,
|
||||
string ResultCollection,
|
||||
string ResultContent,
|
||||
string RootDirectory,
|
||||
string ResultSingleton)
|
||||
{
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
string result = JsonSerializer.Serialize(this, ResultConfigurationSourceGenerationContext.Default.ResultConfiguration);
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||
[JsonSerializable(typeof(ResultConfiguration))]
|
||||
internal partial class ResultConfigurationSourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user