using GPSBusiness.Helper;
namespace GPSBusiness.BBGPSStandard
{
///
/// 事件设置
///
public class Data_8301
{
///
/// 设置类型
///
public byte SetType;
///
/// 设置总数
///
public byte SetSum;
///
/// 事件ID
///
public byte SetID;
///
/// 事件内容长度
///
public byte Setength;
///
/// 事件内容
///
public string SetContent;
public byte[] GetBytes(DataHead model)
{
ByteBuilder bb = new ByteBuilder();
bb.Append(this.SetType);
bb.Append(this.SetSum);
bb.Append(this.SetID);
bb.Append(this.Setength);
bb.Append(ByteConvert.ToBytes(this.SetContent));
model.DataContent = bb.GetBytes();
byte[] bModel = ByteConvert.Zy(model.GetBytes());
return bModel;
}
}
}