// unique db key = Id public Car(DateTime uploadDate, int price, string brand, string model, bool used, YearMonth dateOfPurchase, Engine engine, FuelType fuelType, ChassisType chassisType, string color, GearboxType gearboxType, int totalKilometersDriven, DriveWheels driveWheels, List <string> defects, SteeringWheelPosition steeringWheelPosition, NumberOfDoors numberOfDoors, int numberOfCylinders, int numberOfGears, int seats, YearMonth nextVehicleInspection, string wheelSize, int weight, EuroStandard euroStandard, string originalPurchaseCountry, string vin, List <string> additionalProperties, List <string> images, string comment) { Price = price; UploadDate = uploadDate; Brand = brand; Model = model; Used = used; DateOfPurchase = dateOfPurchase; Engine = engine; FuelType = fuelType; ChassisType = chassisType; Color = color; GearboxType = gearboxType; TotalKilometersDriven = totalKilometersDriven; DriveWheels = driveWheels; Defects = defects; SteeringWheelPosition = steeringWheelPosition; NumberOfDoors = numberOfDoors; NumberOfCylinders = numberOfCylinders; NumberOfGears = numberOfGears; Seats = seats; NextVehicleInspection = nextVehicleInspection; WheelSize = wheelSize; Weight = weight; EuroStandard = euroStandard; OriginalPurchaseCountry = originalPurchaseCountry; Vin = vin; AdditionalProperties = additionalProperties; Images = images; Comment = comment; }
public Gearbox(int gears, GearboxType type) { if (gears < 5 || gears > 7) { throw new ArgumentException("Wrong number of gears", nameof(gears)); } Gears = gears; Type = type; }
public Trainee(string iD, DateTime lastTest, string firstName, string lastName, Gender gender, int phoneNumber, Address address, DateTime dateOfBirth, CarType typeOfVehicleHeStudied, GearboxType typeOfGear, string drivingSchool, string drivingTeacher, int numberOfDrivingLessons) { ID = iD; LastTest = lastTest; FirstName = firstName; LastName = lastName; Gender = gender; PhoneNumber = phoneNumber; Address = address; DateOfBirth = dateOfBirth; TypeOfVehicleHeStudied = typeOfVehicleHeStudied; TypeOfGear = typeOfGear; DrivingSchool = drivingSchool; DrivingTeacher = drivingTeacher; NumberOfDrivingLessons = numberOfDrivingLessons; }
public Gearbox(GearboxType type, int numOfGears) { this.type = type; this.numberOfGears = numOfGears; }
public Gearbox(GearboxType type) { this.type = type; numberOfGears = 0; }
public Gearbox(int gears, GearboxType type) { Gears = gears; Type = type; }