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.

42 lines
1.1 KiB

using GPSBusiness.Helper;
namespace GPSBusiness.BBGPSStandard
{
/// <summary>
/// 事件设置
/// </summary>
public class Data_8301
{
/// <summary>
/// 设置类型
/// </summary>
public byte SetType;
/// <summary>
/// 设置总数
/// </summary>
public byte SetSum;
/// <summary>
/// 事件ID
/// </summary>
public byte SetID;
/// <summary>
/// 事件内容长度
/// </summary>
public byte Setength;
/// <summary>
/// 事件内容
/// </summary>
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;
}
}
}