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.
34 lines
988 B
34 lines
988 B
2 years ago
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|