You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization;
namespace Mirle.Component.API.AutomatedGuideVehicleController.Models { /// <summary>
/// 硬體元件錯誤類別
/// </summary>
/// <remarks>3.1.alert</remarks>
public class ComponentFaultAlertDto : CommonMessage { /// <summary>
/// 設備名稱或車號
/// </summary>
[Required, JsonPropertyName("device"), JsonPropertyOrder(101)] public string Device { get; set; } /// <summary>
/// 設備故障地點 (x, y, theta)
/// </summary>
[JsonPropertyName("position"), JsonPropertyOrder(102)] public string Position { get; set; } /// <summary>
/// Alert 狀態變化
/// </summary>
/// <value>
/// OK-to-NG <br/>
/// NG-to-OK <br/>
/// Other <br/>
/// </value>
[Required, JsonPropertyName("event"), JsonPropertyOrder(103)] public string Event { get; set; } /// <summary>
/// 有問題的元件名稱
/// </summary>
[Required, JsonPropertyName("component"), JsonPropertyOrder(104)] public string Component { get; set; } /// <summary>
/// 搬運任務所屬序號
/// </summary>
[Required, JsonPropertyName("mission_sequence"), JsonPropertyOrder(105)] public string MissionSequence { get; set; } /// <summary>
/// 警報代碼
/// </summary>
[Required, JsonPropertyName("alert_code"), JsonPropertyOrder(106)] public string AlertCode { get; set; } /// <summary>
/// 失敗理由
/// </summary>
[StringLength(255), JsonPropertyName("reason"), JsonPropertyOrder(10)] public string Reason { get; set; } } }
|