Init project
This commit is contained in:
15
RobotApp.VDA5050/State/BatteryState.cs
Normal file
15
RobotApp.VDA5050/State/BatteryState.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace RobotApp.VDA5050.State;
|
||||
|
||||
public class BatteryState
|
||||
{
|
||||
[Required]
|
||||
public double BatteryCharge { get; set; }
|
||||
public double BatteryVoltage { get; set; }
|
||||
[Range(0, 100, ErrorMessage = "Value for BatteryHealth must be between 0 and 100.")]
|
||||
public double BatteryHealth { get; set; }
|
||||
[Required]
|
||||
public bool Charging { get; set; }
|
||||
public double Reach { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user