Overview

Summary

ContactDonateImprint


Appendix E-39: GUEST PROFILE (UI prompt)


GuestProfileBookingModuleAirbnb

Properties (5)

PropertyTypeEntityReferenceModule
(1) AboutSTRINGGuestProfile
(2) CreatedAtDATEGuestProfile
(3) OverallRatingDOUBLEGuestProfile
(4) PlatformUserLONGGuestProfilePlatformUserPlatformUserModule
(5) TripsCountINTGuestProfile


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /guestprofile/{id}updateGuestProfileById(guestprofile)BookingModulePUTGuestProfile
(2) /guestprofile/platformuser/{id}findAllGuestProfileOfPlatformUser(id)BookingModuleGETPlatformUser GuestProfile
(3) /booking/guestprofile/{id}findAllBookingOfGuestProfile(id)BookingModuleGETGuestProfile Booking
(4) /guestprofileinsertGuestProfile(guestprofile)BookingModulePOSTGuestProfile
(5) /guestprofile/{id}findGuestProfileById(id)BookingModuleGETGuestProfile
(6) /guestprofile/{id}deleteGuestProfileById(id)BookingModuleDELETEGuestProfile
(7) /guestprofilefindAllGuestProfile()BookingModuleGETGuestProfile





Example:

final GuestProfile guestprofile = (GuestProfile) invokeModule(BOOKING_MODULE + "/guestprofile/" + id, GuestProfile.class);
if (guestprofile != null) {
    final PlatformUser platformuser1 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + guestprofile.getPlatformUser().getId(), PlatformUser.class);
    if (platformuser1 != null) {
        final City city2 = (City) invokeModule(LISTING_MODULE + "/city/" + platformuser1.getCity().getId(), City.class);
        if (city2 != null) {
            final Country country3 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city2.getCountry().getId(), Country.class);
            if (country3 != null) {
            }
        }
        final Country country4 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + platformuser1.getCountry().getId(), Country.class);
        if (country4 != null) {
        }
    }
}
return guestprofile;


Overview

Summary

ContactDonateImprint