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.
33 lines
988 B
33 lines
988 B
using System;
|
|
using GPSBusiness.Helper;
|
|
namespace GPSBusiness.BBGPSStandard
|
|
{
|
|
/// <summary>
|
|
/// 平台通用应答
|
|
/// </summary>
|
|
public class Data_8001
|
|
{
|
|
/// <summary>
|
|
/// 应答流水号--对应的终端消息的流水号
|
|
/// </summary>
|
|
public UInt16 Mdt_SerialNo;
|
|
/// <summary>
|
|
/// 应答ID--对应的终端消息的ID
|
|
/// </summary>
|
|
public UInt16 Mdt_DataID;
|
|
/// <summary>
|
|
/// 结果--0:成功/确认;1:失败;2:消息有误;3:不支持;4:报警处理确认
|
|
/// </summary>
|
|
public byte Result;
|
|
public byte[] GetBytes(DataHead model)
|
|
{
|
|
ByteBuilder bb = new ByteBuilder();
|
|
bb.Append(ByteConvert.ToBytes(this.Mdt_SerialNo));
|
|
bb.Append(ByteConvert.ToBytes(this.Mdt_DataID));
|
|
bb.Append(this.Result);
|
|
model.DataContent = bb.GetBytes();
|
|
byte[] bModel = ByteConvert.Zy(model.GetBytes());
|
|
return bModel;
|
|
}
|
|
}
|
|
}
|
|
|