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
882 B
33 lines
882 B
using System;
|
|
using GPSBusiness.Helper;
|
|
namespace GPSBusiness.BBGPSStandard
|
|
{
|
|
/// <summary>
|
|
/// 信息服务
|
|
/// </summary>
|
|
public class Data_8304
|
|
{
|
|
/// <summary>
|
|
/// 信息类型
|
|
/// </summary>
|
|
public byte DataType;
|
|
/// <summary>
|
|
/// 信息长度
|
|
/// </summary>
|
|
public UInt16 DataLength;
|
|
/// <summary>
|
|
/// 信息内容
|
|
/// </summary>
|
|
public string DataContent;
|
|
public byte[] GetBytes(DataHead model)
|
|
{
|
|
ByteBuilder bb = new ByteBuilder();
|
|
bb.Append(this.DataType);
|
|
bb.Append(ByteConvert.ToBytes(this.DataLength));
|
|
bb.Append(ByteConvert.ToBytes(this.DataContent));
|
|
model.DataContent = bb.GetBytes();
|
|
byte[] bModel = ByteConvert.Zy(model.GetBytes());
|
|
return bModel;
|
|
}
|
|
}
|
|
}
|
|
|