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.
50 lines
1.3 KiB
50 lines
1.3 KiB
2 years ago
|
using System;
|
||
|
using GPSBusiness.Helper;
|
||
|
namespace GPSBusiness.BBGPSStandard
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// �ն�ע��
|
||
|
/// </summary>
|
||
|
public class Data_0100
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// ʡ��ID
|
||
|
/// </summary>
|
||
|
public UInt16 ProvinceID;
|
||
|
/// <summary>
|
||
|
/// ������ID
|
||
|
/// </summary>
|
||
|
public UInt16 CityID;
|
||
|
/// <summary>
|
||
|
/// ������ID
|
||
|
/// </summary>
|
||
|
public byte[] Factory;
|
||
|
/// <summary>
|
||
|
/// �ն��ͺ�
|
||
|
/// </summary>
|
||
|
public byte[] MdtType;
|
||
|
/// <summary>
|
||
|
/// �ն�ID
|
||
|
/// </summary>
|
||
|
public byte[] MdtID;
|
||
|
/// <summary>
|
||
|
/// ������ɫ
|
||
|
/// </summary>
|
||
|
public byte NumberColor;
|
||
|
/// <summary>
|
||
|
/// ����
|
||
|
/// </summary>
|
||
|
public string Number;
|
||
|
public void FromBytes(Data_0100 model, byte[] buffer)
|
||
|
{
|
||
|
model.ProvinceID = ByteConvert.ToUInt16(buffer, 0);
|
||
|
model.CityID = ByteConvert.ToUInt16(buffer, 2);
|
||
|
model.Factory = ByteConvert.ToBytes(buffer, 4, 5);
|
||
|
model.MdtType = ByteConvert.ToBytes(buffer, 9, 8);
|
||
|
model.MdtID = ByteConvert.ToBytes(buffer, 17, 7);
|
||
|
model.NumberColor = buffer[24];
|
||
|
model.Number = ByteConvert.ToString(buffer, 25, buffer.Length - 25);
|
||
|
}
|
||
|
}
|
||
|
}
|