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.
49 lines
1.3 KiB
49 lines
1.3 KiB
2 years ago
|
using System;
|
||
|
using GPSBusiness.Helper;
|
||
|
namespace GPSBusiness.BBGPSStandard
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// ��Ϣ�㲥�˵�����
|
||
|
/// </summary>
|
||
|
public class Data_8303
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// ��������
|
||
|
/// </summary>
|
||
|
public byte SetType;
|
||
|
/// <summary>
|
||
|
/// ��Ϣ������
|
||
|
/// </summary>
|
||
|
public byte DataSum;
|
||
|
/// <summary>
|
||
|
/// ����Ϣ��
|
||
|
/// </summary>
|
||
|
public byte PacketSum;
|
||
|
/// <summary>
|
||
|
/// ��Ϣ����
|
||
|
/// </summary>
|
||
|
public byte DataType;
|
||
|
/// <summary>
|
||
|
/// ��Ϣ���Ƴ���
|
||
|
/// </summary>
|
||
|
public UInt16 DataNameLength;
|
||
|
/// <summary>
|
||
|
/// ��Ϣ����
|
||
|
/// </summary>
|
||
|
public string DataName;
|
||
|
public byte[] GetBytes(DataHead model)
|
||
|
{
|
||
|
ByteBuilder bb = new ByteBuilder();
|
||
|
bb.Append(this.SetType);
|
||
|
bb.Append(this.DataSum);
|
||
|
bb.Append(this.PacketSum);
|
||
|
bb.Append(this.DataType);
|
||
|
bb.Append(ByteConvert.ToBytes(this.DataNameLength));
|
||
|
bb.Append(ByteConvert.ToBytes(this.DataName));
|
||
|
model.DataContent = bb.GetBytes();
|
||
|
byte[] bModel = ByteConvert.Zy(model.GetBytes());
|
||
|
return bModel;
|
||
|
}
|
||
|
}
|
||
|
}
|