Exemple #1
0
 public Offer(string driverName, string riderId, Location fromLocation, Location toLocation, int availability, string vehicleRegNumber, string vehicleModel, IEnums.OfferStatus status)
 {
     DriverName       = driverName;
     RiderId          = riderId;
     FromLocation     = fromLocation;
     ToLocation       = toLocation;
     Availability     = availability;
     VehicleRegNumber = vehicleRegNumber;
     VehicleModel     = vehicleModel;
     Status           = status;
     Id = RiderId.Substring(0, 3) + DateTime.Now.ToString("hhmm");
     ViaPoints.Add(fromLocation);
     ViaPoints.Add(toLocation);
 }
Exemple #2
0
 public void UpdateOfferStatus(Offer offer, IEnums.OfferStatus status)
 {
     offer.Status = status;
 }