namespace Lab505.Shared; /// /// Robot state pushed via SignalR for both IMR and AMR. /// DobotStatus_Opc / CodeDobotStatus_Opc are only meaningful for the IMR. /// public record RobotStateDto( double X, double Y, bool IsOnline, bool? NewBaseRequest, List Errors, ActionStateDto[] Actions, // IMR-only OPC fields (zero-value for AMR) string DobotStatus_Opc, uint CodeDobotStatus_Opc, RobotErrorDto[] RawErrors ); public record ActionStateDto(string ActionID, string? ActionStatus); /// VDA 5050 error với đầy đủ ErrorType, ErrorLevel, ErrorDescription. public record RobotErrorDto( string? ErrorType, string? ErrorLevel, string? ErrorDescription );