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.
29 lines
806 B
29 lines
806 B
using System;
|
|
using GPSBusiness.Helper;
|
|
namespace GPSBusiness.BBGPSStandard
|
|
{
|
|
/// <summary>
|
|
/// 终端通用应答
|
|
/// </summary>
|
|
public class Data_0001
|
|
{
|
|
/// <summary>
|
|
/// 应答流水号--对应的平台消息的流水号
|
|
/// </summary>
|
|
public UInt16 PT_SerialNo;
|
|
/// <summary>
|
|
/// 应答ID--对应的平台消息的ID
|
|
/// </summary>
|
|
public UInt16 PT_DataID;
|
|
/// <summary>
|
|
/// 结果--0:成功/确认;1:失败;2:消息有误;3:不支持
|
|
/// </summary>
|
|
public byte Result;
|
|
public void FromBytes(Data_0001 model, byte[] buffer)
|
|
{
|
|
model.PT_SerialNo = ByteConvert.ToUInt16(buffer, 0);
|
|
model.PT_DataID = ByteConvert.ToUInt16(buffer, 2);
|
|
model.Result = buffer[4];
|
|
}
|
|
}
|
|
}
|
|
|