Ejemplo n.º 1
0
 public Customer(int id, String customerTitle, String firstName, String lastName, String gender, String dateOfBirth)
 {
     this.Id          = id;
     this.Title       = Various.ParseEnum <CustomerTitle>(customerTitle);
     this.FirstName   = firstName;
     this.LastName    = lastName;
     this.Gender      = Various.ParseEnum <Gender>(gender);
     this.DateOfBirth = dateOfBirth;
 }
Ejemplo n.º 2
0
 public Vehicle(String registration, String make, String model, String year, String vehicleClass, int seatNo,
                String transmission, String fuel, String gps, String sunroof, String color, int dailyRate)
 {
     this.Registration = registration;
     this.Make         = make;
     this.Model        = model;
     this.Year         = year;
     this.VehicleClass = Various.ParseEnum <VehicleClass>(vehicleClass);
     this.SeatNo       = seatNo;
     this.Transmission = Various.ParseEnum <Transmission>(transmission);
     this.Fuel         = Various.ParseEnum <Fuel>(fuel);
     this.GPS          = Various.BoolFromString(gps);
     this.Sunroof      = Various.BoolFromString(sunroof);
     this.Color        = color;
     this.DailyRate    = dailyRate;
 }