using System; using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization; namespace Mirle.Component.API.ProgrammableLogicController.Models { /// /// 消防警訊通知回報類別 /// public class FP049FireAlarmNotifyReportDto : CommonMessage { /// /// 取得消防警訊通知回報 /// /// 交易名稱 /// 軟體編號 /// 消防警訊通知回報 public static FP049FireAlarmNotifyReportDto Get(TransactionName transName, string softwareID) { return new FP049FireAlarmNotifyReportDto() { Timetick = DateTime.Now, TransactionName = transName.ToTransactionName(), SoftwareID = softwareID }; } } /// /// 消防警訊通知回應類別 /// public class TP050FireAlarmNotifyAckDto : CommonMessage { /// /// 結果代碼 /// /// /// 0 = OK
/// 1 = NG
///
[Required, JsonPropertyName("reply_code"), JsonPropertyOrder(101)] public ReplyCode ReplyCode { get; set; } /// /// 取得消防警訊通知回應 /// /// 交易名稱 /// 軟體編號 /// 回應代碼 /// 消防警訊通知回應 public static TP050FireAlarmNotifyAckDto Get(TransactionName transName, string softwareID, ReplyCode replyCode) { return new TP050FireAlarmNotifyAckDto() { Timetick = DateTime.Now, TransactionName = transName.ToTransactionName(), SoftwareID = softwareID, ReplyCode = replyCode }; } } }