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.

53 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;
}
}
}