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.
30 lines
806 B
30 lines
806 B
2 years ago
|
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];
|
||
|
}
|
||
|
}
|
||
|
}
|