Теперь все данные nullable

This commit is contained in:
Пытков Роман
2025-09-17 12:59:21 +03:00
parent c21c92db37
commit c9059f6df3
5 changed files with 49 additions and 48 deletions

View File

@@ -5,31 +5,31 @@ using System.Text.Json.Serialization;
public class JsonData
{
[JsonPropertyName("concentrationIndex")]
public double ConcentrationIndex { get; set; }
public double? ConcentrationIndex { get; set; }
[JsonPropertyName("relaxationIndex")]
public double RelaxationIndex { get; set; }
public double? RelaxationIndex { get; set; }
[JsonPropertyName("cognitiveControl")]
public double CognitiveControl { get; set; }
public double? CognitiveControl { get; set; }
[JsonPropertyName("cognitiveLoad")]
public double CognitiveLoad { get; set; }
public double? CognitiveLoad { get; set; }
[JsonPropertyName("alpha")]
public double Alpha { get; set; }
public double? Alpha { get; set; }
[JsonPropertyName("beta")]
public double Beta { get; set; }
public double? Beta { get; set; }
[JsonPropertyName("theta")]
public double Theta { get; set; }
public double? Theta { get; set; }
[JsonPropertyName("smr")]
public double Smr { get; set; }
public double? Smr { get; set; }
[JsonPropertyName("muWave")]
public double MuWave { get; set; }
public double? MuWave { get; set; }
[JsonPropertyName("artifact")]
public bool Artifact { get; set; }
public bool? Artifact { get; set; }
[JsonPropertyName("signalQuality")]
public double SignalQuality { get; set; }
public double? SignalQuality { get; set; }
[JsonPropertyName("packageIndex")]
public long PackageIndex { get; set; }
[JsonPropertyName("timeOfDataGenerate")]
public DateTime TimeOfDataGenerate { get; set; }
public DateTime? TimeOfDataGenerate { get; set; }
public JsonData() { }