national-instruments-helper
This commit is contained in:
27
Models/NationalInstrumentsConfiguration.cs
Normal file
27
Models/NationalInstrumentsConfiguration.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace File_Watcher.Models;
|
||||
|
||||
public record NationalInstrumentsConfiguration(string CustomScaleName,
|
||||
string[] DifferentialPhysicalChannels,
|
||||
int MaximumValue,
|
||||
int MiniumValue,
|
||||
string[] ReferencedSingleEndedPhysicalChannels,
|
||||
int ReadTimeout,
|
||||
bool UsePointerMethod)
|
||||
{
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
string result = JsonSerializer.Serialize(this, NationalInstrumentsConfigurationSourceGenerationContext.Default.NationalInstrumentsConfiguration);
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||
[JsonSerializable(typeof(NationalInstrumentsConfiguration))]
|
||||
internal partial class NationalInstrumentsConfigurationSourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user