This commit is contained in:
Đăng Nguyễn
2025-09-26 08:48:50 +07:00
parent 0d97684f70
commit d6fe1d9d52
53 changed files with 1232 additions and 111 deletions

View File

@@ -3,8 +3,6 @@ using System.ComponentModel.DataAnnotations;
namespace RobotApp.VDA5050.State;
#nullable disable
public enum OperatingMode
{
AUTOMATIC,
@@ -17,22 +15,21 @@ public class StateMsg
{
[Required]
public uint HeaderId { get; set; }
public string Timestamp { get; set; } = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss.fffZ");
[Required]
public string Timestamp { get; set; }
public string Version { get; set; } = "1.0.0";
[Required]
public string Version { get; set; }
public string Manufacturer { get; set; } = "PhenikaaX";
[Required]
public string Manufacturer { get; set; }
[Required]
public string SerialNumber { get; set; }
public string SerialNumber { get; set; } = string.Empty;
public Map[] Maps { get; set; } = [];
[Required]
public string OrderId { get; set; }
public string OrderId { get; set; } = string.Empty;
[Required]
public int OrderUpdateId { get; set; }
public string ZoneSetId { get; set; }
public string ZoneSetId { get; set; } = string.Empty;
[Required]
public string LastNodeId { get; set; }
public string LastNodeId { get; set; } = string.Empty;
[Required]
public int LastNodeSequenceId { get; set; }
[Required]
@@ -41,7 +38,7 @@ public class StateMsg
public bool NewBaseRequest { get; set; }
public double DistanceSinceLastNode { get; set; }
[Required]
public string OperatingMode { get; set; }
public string OperatingMode { get; set; } = string.Empty;
[Required]
public NodeState[] NodeStates { get; set; } = [];
[Required]