public ParkingPlace(ParkingPlace parkingPlace)
 {
     Id       = parkingPlace.Id;
     Location = new Location(parkingPlace.Location);
     Status   = parkingPlace.Status;
     Zone     = new Zone(parkingPlace.Zone);
 }
Пример #2
0
 public Reservation(ParkingPlace parkingPlace, User user, string startDateTimeAndroid)
 {
     Id = idCounter++;
     StartDateTimeAndroid = DateTime.ParseExact(startDateTimeAndroid, formatSpecifier, culture);
     StartDateTimeServer  = DateTime.Now;
     ParkingPlace         = new ParkingPlace(parkingPlace);
     User             = user;
     User.Reservation = this;
 }
 public PaidParkingPlace(ParkingPlace parkingPlace, User user, string startDateTimeAndroid, TicketType ticketType)
 {
     Id                           = idGenerator++;
     ParkingPlace                 = new ParkingPlace(parkingPlace);
     StartDateTimeAndroid         = DateTime.ParseExact(startDateTimeAndroid, formatSpecifier, culture);
     StartDateTimeServer          = DateTime.Now;
     TicketType                   = ticketType;
     ArrogantUser                 = false;
     User                         = user;
     User.RegularPaidParkingPlace = this;
     AgainTake                    = false;
 }