예제 #1
0
        public void OnTripEstimateTripCost()
        {
            Trip trip = new Trip
            {
                PassengerCount = State.TripConfiguration.PassengerCount,
                PaymentType    = State.TripConfiguration.paymentType,
                TripDistance   = State.TripConfiguration.TripDistance,
                VendorId       = State.TripConfiguration.vendor,
                RateCode       = State.TripConfiguration.rateCode.ToString()
            };

            State.TotalPrice          = TripCostService.PredictFare(trip).FareAmount;
            configurationPanelVisible = false;
        }
예제 #2
0
        public async Task OnTripEstimateTripCost()
        {
            Trip trip = new Trip
            {
                PassengerCount = TripConfiguration.PassengerCount,
                PaymentType    = TripConfiguration.paymentType,
                TripDistance   = TripConfiguration.TripDistance,
                VendorId       = TripConfiguration.vendor,
                RateCode       = TripConfiguration.rateCode.ToString()
            };

            totalPrice = TripCostService.PredictFare(trip).FareAmount;
            await ConfigurationPanel.HideAsync();
        }