Exemple #1
0
 public UberPrice(Guid productId, string currencyCode, string priceEstimate, string lowEstimate, string highEstimate, int durationInSeconds, double distanceInMiles)
 {
     this.ProductId         = productId;
     this.CurrencyCode      = currencyCode;
     this.PriceEstimate     = priceEstimate;
     this.LowEstimate       = lowEstimate;
     this.HighEstimate      = highEstimate;
     this.DurationInSeconds = durationInSeconds;
     this.DistanceInMeters  = DistanceConverter.MilesToMeters(distanceInMiles);
 }