Overview

Summary

ContactDonateImprint


Appendix E-14: TRIP (UI prompt)


TripVehicleModuleUber

Properties (16)

PropertyTypeEntityReferenceModule
(1) AcceptedAtSTRINGTrip
(2) CanceledAtSTRINGTrip
(3) CompletedAtSTRINGTrip
(4) DestinationCityLONGTripCityCityModule
(5) DistanceKmDOUBLETrip
(6) DriverAccountLONGTripDriverAccountVehicleModule
(7) DurationMinutesINTTrip
(8) OriginCityLONGTripCityCityModule
(9) PriceAmountDOUBLETrip
(10) PriceCurrencySTRINGTrip
(11) RequestedAtSTRINGTrip
(12) RiderAccountLONGTripRiderAccountPlatformUserModule
(13) ServiceLONGTripServiceCompanyModule
(14) StartedAtSTRINGTrip
(15) StatusSTRINGTrip
(16) VehicleLONGTripVehicleVehicleModule


Module Interfaces (13)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /trip/rideraccount/{id}findAllTripOfRiderAccount(id)VehicleModuleGETRiderAccount Trip
(2) /trip/driveraccount/{id}findAllTripOfDriverAccount(id)VehicleModuleGETDriverAccount Trip
(3) /trip/{id}deleteTripById(id)VehicleModuleDELETETrip
(4) /trippayment/trip/{id}findAllTripPaymentOfTrip(id)VehicleModuleGETTrip TripPayment
(5) /tripfindAllTrip()VehicleModuleGETTrip
(6) /trip/vehicle/{id}findAllTripOfVehicle(id)VehicleModuleGETVehicle Trip
(7) /trip/{id}findTripById(id)VehicleModuleGETTrip
(8) /trip/{id}updateTripById(trip)VehicleModulePUTTrip
(9) /trippromotion/trip/{id}findAllTripPromotionOfTrip(id)VehicleModuleGETTrip TripPromotion
(10) /tripinsertTrip(trip)VehicleModulePOSTTrip
(11) /trip/service/{id}findAllTripOfService(id)VehicleModuleGETService Trip
(12) /trip/destinationcity/{id}findAllTripOfDestinationCity(id)VehicleModuleGETCity Trip
(13) /trip/origincity/{id}findAllTripOfOriginCity(id)VehicleModuleGETCity Trip





Example:

final Trip trip = (Trip) invokeModule(VEHICLE_MODULE + "/trip/" + id, Trip.class);
if (trip != null) {
    final Service service1 = (Service) invokeModule(COMPANY_MODULE + "/service/" + trip.getService().getId(), Service.class);
    if (service1 != null) {
        final Company company2 = (Company) invokeModule(COMPANY_MODULE + "/company/" + service1.getCompany().getId(), Company.class);
        if (company2 != null) {
        }
    }
    final DriverAccount driveraccount3 = (DriverAccount) invokeModule(VEHICLE_MODULE + "/driveraccount/" + trip.getDriverAccount().getId(), DriverAccount.class);
    if (driveraccount3 != null) {
        final PlatformUser platformuser4 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + driveraccount3.getPlatformUser().getId(), PlatformUser.class);
        if (platformuser4 != null) {
        }
    }
    final RiderAccount rideraccount5 = (RiderAccount) invokeModule(PLATFORM_USER_MODULE + "/rideraccount/" + trip.getRiderAccount().getId(), RiderAccount.class);
    if (rideraccount5 != null) {
        final PlatformUser platformuser6 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + rideraccount5.getPlatformUser().getId(), PlatformUser.class);
        if (platformuser6 != null) {
        }
    }
    final City origincity7 = (City) invokeModule(CITY_MODULE + "/city/" + trip.getOriginCity().getId(), City.class);
    if (origincity7 != null) {
        final Country country8 = (Country) invokeModule(CITY_MODULE + "/country/" + origincity7.getCountry().getId(), Country.class);
        if (country8 != null) {
        }
    }
    final Vehicle vehicle9 = (Vehicle) invokeModule(VEHICLE_MODULE + "/vehicle/" + trip.getVehicle().getId(), Vehicle.class);
    if (vehicle9 != null) {
    }
    final City destinationcity10 = (City) invokeModule(CITY_MODULE + "/city/" + trip.getDestinationCity().getId(), City.class);
    if (destinationcity10 != null) {
        final Country country11 = (Country) invokeModule(CITY_MODULE + "/country/" + destinationcity10.getCountry().getId(), Country.class);
        if (country11 != null) {
        }
    }
}
return trip;


Overview

Summary

ContactDonateImprint