using System; using GPSBusiness.Helper; namespace GPSBusiness.BBGPSStandard { /// /// 设置终端参数 /// public class Data_8103 { /// /// 参数总数 /// public byte ParameterSum; /// /// 参数ID /// public UInt16 ParameterID; /// /// 参数长度 /// public byte ParameterLength; /// /// 参数值 /// public UInt16 ParameterValue; public byte[] GetBytes(DataHead model) { ByteBuilder bb = new ByteBuilder(); bb.Append(this.ParameterSum); bb.Append(ByteConvert.ToBytes(this.ParameterID)); bb.Append(ByteConvert.ToBytes(this.ParameterLength)); bb.Append(ByteConvert.ToBytes(this.ParameterValue)); model.DataContent = bb.GetBytes(); byte[] bModel = ByteConvert.Zy(model.GetBytes()); return bModel; } } }