40 lines
1020 B
C#
40 lines
1020 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace RobotNet.VDA5050.Factsheet;
|
|
|
|
public class Version
|
|
{
|
|
[JsonPropertyName("key")]
|
|
public string Key { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("value")]
|
|
public string Value { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class Network
|
|
{
|
|
[JsonPropertyName("dnsServers")]
|
|
public string[] DnsServers { get; set; } = [];
|
|
|
|
[JsonPropertyName("ntpServers")]
|
|
public string[] NtpServers { get; set; } = [];
|
|
|
|
[JsonPropertyName("localIpAddress")]
|
|
public string LocalIpAddress { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("netmask")]
|
|
public string Netmask { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("defaultGateway")]
|
|
public string DefaultGateway { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class VehicleConfig
|
|
{
|
|
[JsonPropertyName("versions")]
|
|
public Version[] Versions { get; set; } = [];
|
|
|
|
[JsonPropertyName("network")]
|
|
public Network Network { get; set; } = new();
|
|
}
|