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.
52 lines
1.4 KiB
52 lines
1.4 KiB
using GPSBusiness.Helper;
|
|
namespace GPSBusiness.BBGPSStandard
|
|
{
|
|
/// <summary>
|
|
/// 设置电话本
|
|
/// </summary>
|
|
public class Data_8401
|
|
{
|
|
/// <summary>
|
|
/// 设置类型
|
|
/// </summary>
|
|
public byte SetType;
|
|
/// <summary>
|
|
/// 联系人总数
|
|
/// </summary>
|
|
public byte ContactPeopleSum;
|
|
/// <summary>
|
|
/// 标志
|
|
/// </summary>
|
|
public byte Sign;
|
|
/// <summary>
|
|
/// 号码长度
|
|
/// </summary>
|
|
public byte PhoneLength;
|
|
/// <summary>
|
|
/// 电话号码
|
|
/// </summary>
|
|
public string PhoneNumber;
|
|
/// <summary>
|
|
/// 联系人长度
|
|
/// </summary>
|
|
public byte ContactPeopleLength;
|
|
/// <summary>
|
|
/// 联系人
|
|
/// </summary>
|
|
public string ContactPeople;
|
|
public byte[] GetBytes(DataHead model)
|
|
{
|
|
ByteBuilder bb = new ByteBuilder();
|
|
bb.Append(this.SetType);
|
|
bb.Append(this.ContactPeopleSum);
|
|
bb.Append(this.Sign);
|
|
bb.Append(this.PhoneLength);
|
|
bb.Append(ByteConvert.ToBytes(this.PhoneNumber));
|
|
bb.Append(this.ContactPeopleLength);
|
|
bb.Append(ByteConvert.ToBytes(this.ContactPeople));
|
|
model.DataContent = bb.GetBytes();
|
|
byte[] bModel = ByteConvert.Zy(model.GetBytes());
|
|
return bModel;
|
|
}
|
|
}
|
|
}
|
|
|