/// <summary> /// возвращает статус(тип) карты в слоте для карты второго водителя /// </summary> /// <returns>DRIVER CARD, WORKSHOP CARD, CONTROL CARD, COMPANY CARD, UNKNOWN CARD</returns> public string getCoDriverCardSlotsStatus_toString() { string result; switch (ConvertionClass.convertIntoUnsigned1ByteInt(getCoDriverCardSlotsStatus())) { case 0x1: result = "DRIVER CARD"; break; case 0x2: result = "WORKSHOP CARD"; break; case 0x3: result = "CONTROL CARD"; break; case 0x4: result = "COMPANY CARD"; break; default: result = "UNKNOWN CARD"; break; } return(result); }
public CertificateContent(byte[] value, short kidType) { certificateProfileIdentifier = ConvertionClass.convertIntoUnsigned1ByteInt(value[0]); certificationAuthorityReference = new KeyIdentifier(ConvertionClass.arrayCopy(value, 1, 8), kidType); certificateHolderAuthorisation = new CertificateHolderAuthorisation(ConvertionClass.arrayCopy(value, 9, 7)); certificateEndOfValidity = new TimeReal(ConvertionClass.arrayCopy(value, 16, 4)); certificateHolderReference = new KeyIdentifier(ConvertionClass.arrayCopy(value, 20, 8), kidType); publicKey = new PublicKey(ConvertionClass.arrayCopy(value, 28, 136)); }
public Name(byte[] value) { byte codePageTmp = value[0]; byte[] nameTmp = ConvertionClass.arrayCopy(value, 1, value.Length - 1); codePage = ConvertionClass.convertIntoUnsigned1ByteInt(codePageTmp); setName(nameTmp); }
public VehicleRegistrationNumber(byte[] value) { byte codePageTemp = value[0]; byte[] vehicleRegNumberTemp = ConvertionClass.arrayCopy(value, 1, value.Length - 1); codePage = ConvertionClass.convertIntoUnsigned1ByteInt(codePageTemp); vehicleRegNumber = ConvertionClass.arrayCopy(vehicleRegNumberTemp, 0, 13); }
/// <summary> /// перегруженный метод. В основном использовался для дебага и разработки. /// </summary> /// <returns>возращает строку со всеми данными сразу</returns> public override string ToString() { string result; switch (ConvertionClass.convertIntoUnsigned1ByteInt(getDriverCardSlotsStatus())) { case 0x1: result = "DriverCard Slot Status: DRIVER_CARD_INSERTED \r\n"; break; case 0x2: result = "DriverCard Slot Status: WORKSHOP_CARD_INSERTED \r\n"; break; case 0x3: result = "DriverCard Slot Status: CONTROL_CARD_INSERTED \r\n"; break; case 0x4: result = "DriverCard Slot Status: COMPANY_CARD_INSERTED \r\n"; break; default: result = "DriverCardSlotsStatus: UNKNOWN_CARD_INSERTED \r\n"; break; } switch (ConvertionClass.convertIntoUnsigned1ByteInt(getCoDriverCardSlotsStatus())) { case 0x1: result += "CoDriverCard Slot Status: DRIVER_CARD_INSERTED\r\n"; break; case 0x2: result += "CoDriverCard Slot Status: WORKSHOP_CARD_INSERTED\r\n"; break; case 0x3: result += "CoDriverCard Slot Status: CONTROL_CARD_INSERTED\r\n"; break; case 0x4: result += "CoDriverCard Slot Status: COMPANY_CARD_INSERTED\r\n"; break; default: result += "CoDriverCard Slot Status: UNKNOWN_CARD_INSERTED\r\n"; break; } return(result); }
public VuControlActivityData(byte[] value) { vuControlActivityRecords = new List <VuControlActivityRecord>(); noOfControls = ConvertionClass.convertIntoUnsigned1ByteInt(value[0]); structureSize = 1 + noOfControls * VuControlActivityRecord.structureSize; if (noOfControls != 0) { for (int i = 0; i < noOfControls; i++) { byte[] record = ConvertionClass.arrayCopy(value, 1 + (i * VuControlActivityRecord.structureSize), VuControlActivityRecord.structureSize); VuControlActivityRecord vcar = new VuControlActivityRecord(record); vuControlActivityRecords.Add(vcar); } } }
public VuEventData(byte[] value) { vuEventRecords = new List <VuEventRecord>(); noOfVuEvents = ConvertionClass.convertIntoUnsigned1ByteInt(value[0]); structureSize = 1 + noOfVuEvents * VuEventRecord.structureSize; if (noOfVuEvents != 0) { for (int i = 0; i < noOfVuEvents; i++) { byte[] record = ConvertionClass.arrayCopy(value, 1 + (i * VuEventRecord.structureSize), VuEventRecord.structureSize); VuEventRecord ver = new VuEventRecord(record); vuEventRecords.Add(ver); } } }
public VuPlaceDailyWorkPeriodData(byte[] value) { vuPlaceDailyWorkPeriodRecords = new List <VuPlaceDailyWorkPeriodRecord>(); noOfPlaceRecords = ConvertionClass.convertIntoUnsigned1ByteInt(value[0]); structureSize = 1 + noOfPlaceRecords * VuPlaceDailyWorkPeriodRecord.structureSize; if (noOfPlaceRecords != 0) { for (int i = 0; i < noOfPlaceRecords; i++) { byte[] record = ConvertionClass.arrayCopy(value, 1 + (i * VuPlaceDailyWorkPeriodRecord.structureSize), VuPlaceDailyWorkPeriodRecord.structureSize); VuPlaceDailyWorkPeriodRecord vpdwpr = new VuPlaceDailyWorkPeriodRecord(record); vuPlaceDailyWorkPeriodRecords.Add(vpdwpr); } } }
public NoOfCardPlaceRecords(byte b) { noOfCardPlaceRecords = ConvertionClass.convertIntoUnsigned1ByteInt(b); }
public NoOfFaultsPerType(string value) { byte b = Convert.ToByte(value); noOfFaultsPerType = ConvertionClass.convertIntoUnsigned1ByteInt(b); }
public NoOfFaultsPerType(byte b) { noOfFaultsPerType = ConvertionClass.convertIntoUnsigned1ByteInt(b); }
public EntryTypeDailyWorkPeriod(byte value) { entryTypeDailyWorkPeriod = ConvertionClass.convertIntoUnsigned1ByteInt(value); }
public Name(byte codePageTmp, string name) { codePage = ConvertionClass.convertIntoUnsigned1ByteInt(codePageTmp); setName(name); }
public Speed(byte b) { speed = ConvertionClass.convertIntoUnsigned1ByteInt(b); }
public NoOfCalibrationRecords(byte b) { noOfCalibrationRecords = ConvertionClass.convertIntoUnsigned1ByteInt(b); }
public SimilarEventsNumber(byte b) { similarEventsNumber = ConvertionClass.convertIntoUnsigned1ByteInt(b); }
public ManufacturerCode(byte b) { manufacturerCode = ConvertionClass.convertIntoUnsigned1ByteInt(b); }
public NationNumeric(byte value) { this.nationNumeric = ConvertionClass.convertIntoUnsigned1ByteInt(value); }
public VehicleRegistrationNumber(byte codePageTemp, byte[] vehicleRegNumberTemp) { codePage = ConvertionClass.convertIntoUnsigned1ByteInt(codePageTemp); vehicleRegNumber = ConvertionClass.arrayCopy(vehicleRegNumberTemp, 0, 13); }
public CompanyActivityType(byte value) { companyActivityType = ConvertionClass.convertIntoUnsigned1ByteInt(value); }
public EquipmentType(byte value) { equipmentType = ConvertionClass.convertIntoUnsigned1ByteInt(value); }
public NoOfCalibrationRecords(string value) { byte b = Convert.ToByte(value); noOfCalibrationRecords = ConvertionClass.convertIntoUnsigned1ByteInt(b); }
public EquipmentType(string value) { byte b = Convert.ToByte(value); equipmentType = ConvertionClass.convertIntoUnsigned1ByteInt(b); }
public CardSlotNumber(byte value) { cardSlotNumber = ConvertionClass.convertIntoUnsigned1ByteInt(value); }
public OverspeedNumber(byte b) { overspeedNumber = ConvertionClass.convertIntoUnsigned1ByteInt(b); }