Теперь все данные nullable
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
namespace Domain;
|
||||
|
||||
public record class Data(
|
||||
double ConcentrationIndex,
|
||||
double RelaxationIndex,
|
||||
double CognitiveControl,
|
||||
double CognitiveLoad,
|
||||
double Alpha,
|
||||
double Beta,
|
||||
double Theta,
|
||||
double Smr,
|
||||
double MuWave,
|
||||
bool Artifact,
|
||||
double SignalQuality,
|
||||
double? ConcentrationIndex,
|
||||
double? RelaxationIndex,
|
||||
double? CognitiveControl,
|
||||
double? CognitiveLoad,
|
||||
double? Alpha,
|
||||
double? Beta,
|
||||
double? Theta,
|
||||
double? Smr,
|
||||
double? MuWave,
|
||||
bool? Artifact,
|
||||
double? SignalQuality,
|
||||
long PackageIndex,
|
||||
DateTime TimeOfDataGenerate
|
||||
DateTime? TimeOfDataGenerate
|
||||
);
|
||||
@@ -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() { }
|
||||
|
||||
|
||||
@@ -6,31 +6,31 @@ using MessagePack;
|
||||
public class MessagePackData
|
||||
{
|
||||
[Key("concentrationIndex")]
|
||||
public double ConcentrationIndex { get; set; }
|
||||
public double? ConcentrationIndex { get; set; }
|
||||
[Key("relaxationIndex")]
|
||||
public double RelaxationIndex { get; set; }
|
||||
public double? RelaxationIndex { get; set; }
|
||||
[Key("cognitiveControl")]
|
||||
public double CognitiveControl { get; set; }
|
||||
public double? CognitiveControl { get; set; }
|
||||
[Key("cognitiveLoad")]
|
||||
public double CognitiveLoad { get; set; }
|
||||
public double? CognitiveLoad { get; set; }
|
||||
[Key("alpha")]
|
||||
public double Alpha { get; set; }
|
||||
public double? Alpha { get; set; }
|
||||
[Key("beta")]
|
||||
public double Beta { get; set; }
|
||||
public double? Beta { get; set; }
|
||||
[Key("theta")]
|
||||
public double Theta { get; set; }
|
||||
public double? Theta { get; set; }
|
||||
[Key("smr")]
|
||||
public double Smr { get; set; }
|
||||
public double? Smr { get; set; }
|
||||
[Key("muWave")]
|
||||
public double MuWave { get; set; }
|
||||
public double? MuWave { get; set; }
|
||||
[Key("artifact")]
|
||||
public bool Artifact { get; set; }
|
||||
public bool? Artifact { get; set; }
|
||||
[Key("signalQuality")]
|
||||
public double SignalQuality { get; set; }
|
||||
public double? SignalQuality { get; set; }
|
||||
[Key("packageIndex")]
|
||||
public long PackageIndex { get; set; }
|
||||
[Key("timeOfDataGenerate")]
|
||||
public DateTime TimeOfDataGenerate { get; set; }
|
||||
public DateTime? TimeOfDataGenerate { get; set; }
|
||||
|
||||
public MessagePackData() { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user