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; using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization;
namespace Mirle.Component.API.ProgrammableLogicController.Models { /// <summary>
/// 移動台車狀態請求類別
/// </summary>
public class TP019MoveCarStatusRequestDto : CommonMessage { /// <summary>
/// 當下任務編號
/// </summary>
/// <remarks>S[YYYYMMDDHH][Sequnce * 5]</remarks>
[Required, StringLength(16), JsonPropertyName("current_task_id"), JsonPropertyOrder(101)] public string CurrentTaskID { get; set; } /// <summary>
/// 站點編號
/// </summary>
[Required, StringLength(9), JsonPropertyName("station_id"), JsonPropertyOrder(102)] public string StationID { get; set; } /// <summary>
/// 取得移動台車狀態請求
/// </summary>
/// <param name="transName">交易名稱</param>
/// <param name="softwareID">軟體編號</param>
/// <param name="currentTaskID">當下任務編號</param>
/// <param name="stationID">站點編號</param>
/// <returns>移動台車狀態請求</returns>
public static TP019MoveCarStatusRequestDto Get(TransactionName transName, string softwareID, string currentTaskID, string stationID) { return new TP019MoveCarStatusRequestDto() { Timetick = DateTime.Now, TransactionName = transName.ToTransactionName(), SoftwareID = softwareID, CurrentTaskID = currentTaskID, StationID = stationID }; } } /// <summary>
/// 移動台車狀態回應類別
/// </summary>
public class FP020MoveCarStatusResponseDto : CommonMessage { /// <summary>
/// 當下任務編號
/// </summary>
/// <remarks>SHTC 任務編號</remarks>
[Required, StringLength(16), JsonPropertyName("current_task_id"), JsonPropertyOrder(101)] public string CurrentTaskID { get; set; } /// <summary>
/// 站點編號
/// </summary>
[Required, StringLength(9), JsonPropertyName("station_id"), JsonPropertyOrder(102)] public string StationID { get; set; } /// <summary>
/// 移動台車狀態
/// </summary>
/// <value>
/// 0 = Ready <br/>
/// 1 = Not Ready <br/>
/// </value>
[Required, JsonPropertyName("move_car_status"), JsonPropertyOrder(103)] public MoveCarStatus MoveCarStatus { get; set; } /// <summary>
/// 結果代碼
/// </summary>
/// <value>
/// 0 = Success <br/>
/// 1 = Reject <br/>
/// </value>
[Required, JsonPropertyName("result_code"), JsonPropertyOrder(104)] public MoveCarResultCode ResultCode { get; set; } } }
|