Exemplo n.º 1
0
 public ExtendedSerialNumber(byte[] value)
 {
     serialNumber     = ConvertionClass.convertIntoUnsigned4ByteInt(ConvertionClass.arrayCopy(value, 0, 4));
     monthYear        = ConvertionClass.convertBCDStringIntoString(ConvertionClass.arrayCopy(value, 4, 2));
     type             = value[6];
     manufacturerCode = new ManufacturerCode(value[7]);
 }
Exemplo n.º 2
0
 public CertificateRequestID(byte[] value)
 {
     requestSerialNumber = ConvertionClass.convertIntoUnsigned4ByteInt(ConvertionClass.arrayCopy(value, 0, 4));
     requestMonthYear    = ConvertionClass.arrayCopy(value, 4, 2);
     crIdentifier        = value[6];
     manufacturerCode    = new ManufacturerCode(value[7]);
 }
Exemplo n.º 3
0
        public CardFaultRecord(byte[] value)
        {
            faultType = new EventFaultType(value[0]);
            long faultBeginTimeTmp = ConvertionClass.convertIntoUnsigned4ByteInt(ConvertionClass.arrayCopy(value, 1, 4));

            faultBeginTime           = new TimeReal(ConvertionClass.arrayCopy(value, 1, 4));
            faultEndTime             = new TimeReal(ConvertionClass.arrayCopy(value, 5, 4));
            faultVehicleRegistration = new VehicleRegistrationIdentification(ConvertionClass.arrayCopy(value, 9, 15));
        }
Exemplo n.º 4
0
        public ExtendedSerialNumber(string value)
        {
            System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding();
            byte[] _bytes;

            _bytes = enc.GetBytes(value);

            serialNumber     = ConvertionClass.convertIntoUnsigned4ByteInt(ConvertionClass.arrayCopy(_bytes, 0, 4));
            monthYear        = ConvertionClass.convertBCDStringIntoString(ConvertionClass.arrayCopy(_bytes, 4, 2));
            type             = _bytes[6];
            manufacturerCode = new ManufacturerCode(_bytes[7]);
        }
Exemplo n.º 5
0
 public TimeReal(byte[] value)
 {
     timereal = ConvertionClass.convertIntoUnsigned4ByteInt(value);
 }