Initial commit

This commit is contained in:
2026-07-13 09:25:40 +07:00
parent c08ff54676
commit bccfb156d7
1938 changed files with 641646 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace RobotNet.VDA5050.State;
public class BatteryState
{
[Required]
[JsonPropertyName("batteryCharge")]
public double BatteryCharge { get; set; }
[JsonPropertyName("batteryVoltage")]
public double? BatteryVoltage { get; set; }
[Range(0, 100, ErrorMessage = "Value for BatteryHealth must be between 0 and 100.")]
[JsonPropertyName("batteryHealth")]
public double BatteryHealth { get; set; }
[Required]
[JsonPropertyName("charging")]
public bool Charging { get; set; }
[JsonPropertyName("reach")]
public double? Reach { get; set; }
}