using System;
using GPSBusiness.Helper;
namespace GPSBusiness.BBGPSStandard
{
///
/// 信息服务
///
public class Data_8304
{
///
/// 信息类型
///
public byte DataType;
///
/// 信息长度
///
public UInt16 DataLength;
///
/// 信息内容
///
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;
}
}
}