23 lines
672 B
C#
23 lines
672 B
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace File_Watcher.Models;
|
|
|
|
public record LabJackT7Configuration(string InternetProtocolAddress,
|
|
int Port,
|
|
string To)
|
|
{
|
|
|
|
public override string ToString()
|
|
{
|
|
string result = JsonSerializer.Serialize(this, LabJackT7ConfigurationSourceGenerationContext.Default.LabJackT7Configuration);
|
|
return result;
|
|
}
|
|
|
|
}
|
|
|
|
[JsonSourceGenerationOptions(WriteIndented = true)]
|
|
[JsonSerializable(typeof(LabJackT7Configuration))]
|
|
internal partial class LabJackT7ConfigurationSourceGenerationContext : JsonSerializerContext
|
|
{
|
|
} |