public VINCarInfo DecodeVINNumber(string VINNumber) { VINCarInfo _carInfo = new VINCarInfo(); if (VINNumber.StartsWith("YK1")) // finland? { _carInfo.Makeyear = DecodeMakeyear(VINNumber); _carInfo.CarModel = DecodeCarModel(VINNumber); _carInfo.EngineType = DecodeEngineType(VINNumber); _carInfo.PlantInfo = DecodePlantInfo(VINNumber); _carInfo.Series = DecodeSeries(VINNumber); _carInfo.Body = DecodeBodyType(VINNumber); _carInfo.TurboModel = DecodeTurboModel(_carInfo.EngineType, _carInfo.CarModel); _carInfo.Valid = true; } else if (VINNumber.StartsWith("YS3")) // sweden? { _carInfo.Makeyear = DecodeMakeyear(VINNumber); _carInfo.CarModel = DecodeCarModel(VINNumber); _carInfo.EngineType = DecodeEngineType(VINNumber); _carInfo.PlantInfo = DecodePlantInfo(VINNumber); _carInfo.Series = DecodeSeries(VINNumber); _carInfo.Body = DecodeBodyType(VINNumber); _carInfo.TurboModel = DecodeTurboModel(_carInfo.EngineType, _carInfo.CarModel); _carInfo.Valid = true; } return(_carInfo); }
public VINCarInfo DecodeVINNumber(string VINNumber) { VINCarInfo _carInfo = new VINCarInfo(); if (VINNumber.StartsWith("YK1")) // finland? { _carInfo.Makeyear = DecodeMakeyear(VINNumber); _carInfo.CarModel = DecodeCarModel(VINNumber); _carInfo.EngineType = DecodeEngineType(VINNumber); _carInfo.PlantInfo = DecodePlantInfo(VINNumber); _carInfo.Series = DecodeSeries(VINNumber); _carInfo.Body = DecodeBodyType(VINNumber); _carInfo.TurboModel = DecodeTurboModel(_carInfo.EngineType, _carInfo.CarModel); _carInfo.Valid = true; } else if (VINNumber.StartsWith("YS3")) // sweden? { _carInfo.Makeyear = DecodeMakeyear(VINNumber); _carInfo.CarModel = DecodeCarModel(VINNumber); _carInfo.EngineType = DecodeEngineType(VINNumber); _carInfo.PlantInfo = DecodePlantInfo(VINNumber); _carInfo.Series = DecodeSeries(VINNumber); _carInfo.Body = DecodeBodyType(VINNumber); _carInfo.TurboModel = DecodeTurboModel(_carInfo.EngineType, _carInfo.CarModel); _carInfo.Valid = true; } return _carInfo; }