namespace JiShe.CollectBus.Protocol.Models
{
    /// <summary>
    /// 报文构建返回结果
    /// </summary>
    public class ProtocolBuildResponse
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSuccess { get; set; } = false;

        /// <summary>
        /// 帧功能域AFN
        /// </summary>
        public int AFn { get; set;}

        /// <summary>
        /// 帧功能域FN
        /// </summary>
        public int Fn { get; set; }
        
        /// <summary>
        /// 帧序列域SEQ
        /// </summary>
        public int Seq { get; set; }

        /// <summary>
        /// 地址域A3的主站地址MSA
        /// </summary>
        public int MSA { get; set; }

        /// <summary>
        /// 任务时间戳
        /// </summary>
        public long TimeStamp { get; set; }

        /// <summary>
        /// 报文体
        /// </summary>
        public byte[] Data { get; set; }
    }
}
