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 CommonMessage { /// <summary>
/// 時間戳記
/// </summary>
[Required, JsonPropertyName("timetick"), JsonPropertyOrder(1)] public DateTime Timetick { get; set; } /// <summary>
/// 交易名稱
/// </summary>
[Required, StringLength(5), JsonPropertyName("transaction_name"), JsonPropertyOrder(2)] public string TransactionName { get; set; } /// <summary>
/// 軟體編號
/// </summary>
[Required, StringLength(7), JsonPropertyName("software_id"), JsonPropertyOrder(3)] public string SoftwareID { get; set; } /// <summary>
/// 任務編號
/// </summary>
/// <remarks>P[YYYYMMDDHH][Sequence * 5]</remarks>
[StringLength(16), JsonPropertyName("task_id"), JsonPropertyOrder(4)] public string TaskID { get; set; } } }
|