Overview

Summary

ServicesContactDonateAboutImprint


4. HOST PROFILE MODULE (UI prompt)



Module Entities (6)

EntityAliasModuleGlobal Schema
(1) BookingBookingListingModuleAirbnb
(2) HostProfileHostProfileHostProfileModuleAirbnb
(3) ListingListingListingModuleAirbnb
(4) ListingPhotoListingPhotoHostProfileModuleAirbnb
(5) PayoutPayoutHostProfileModuleAirbnb
(6) PlatformUserPlatformUserPlatformUserModuleAirbnb

Module Interfaces (19)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /payoutinsertPayout(payout)HostProfileModulePOSTPayout
(2) /payout/{id}findPayoutById(id)HostProfileModuleGETPayout
(3) /hostprofile/{id}updateHostProfileById(hostprofile)HostProfileModulePUTHostProfile
(4) /hostprofilefindAllHostProfile()HostProfileModuleGETHostProfile
(5) /payout/{id}deletePayoutById(id)HostProfileModuleDELETEPayout
(6) /payout/{id}updatePayoutById(payout)HostProfileModulePUTPayout
(7) /listingphoto/{id}findListingPhotoById(id)HostProfileModuleGETListingPhoto
(8) /hostprofile/{id}deleteHostProfileById(id)HostProfileModuleDELETEHostProfile
(9) /payout/booking/{id}findAllPayoutOfBooking(id)HostProfileModuleGETBooking Payout
(10) /hostprofile/platformuser/{id}findAllHostProfileOfPlatformUser(id)HostProfileModuleGETPlatformUser HostProfile
(11) /listingphoto/listing/{id}findAllListingPhotoOfListing(id)HostProfileModuleGETListing ListingPhoto
(12) /listingphotoinsertListingPhoto(listingphoto)HostProfileModulePOSTListingPhoto
(13) /hostprofileinsertHostProfile(hostprofile)HostProfileModulePOSTHostProfile
(14) /hostprofile/{id}findHostProfileById(id)HostProfileModuleGETHostProfile
(15) /payoutfindAllPayout()HostProfileModuleGETPayout
(16) /payout/hostprofile/{id}findAllPayoutOfHostProfile(id)HostProfileModuleGETHostProfile Payout
(17) /listingphoto/{id}updateListingPhotoById(listingphoto)HostProfileModulePUTListingPhoto
(18) /listingphotofindAllListingPhoto()HostProfileModuleGETListingPhoto
(19) /listingphoto/{id}deleteListingPhotoById(id)HostProfileModuleDELETEListingPhoto






4.1 HOST PROFILE


HostProfileHostProfileModuleAirbnb

Properties (8)

PropertyTypeEntityReferenceModule
(1) AboutSTRINGHostProfile
(2) CreatedAtDATEHostProfile
(3) IsSuperhostBOOLHostProfile
(4) OverallRatingDOUBLEHostProfile
(5) PlatformUserLONGHostProfilePlatformUserPlatformUserModule
(6) ResponseRateDOUBLEHostProfile
(7) ResponseTimeSTRINGHostProfile
(8) SuperhostSinceDATEHostProfile





Example:

final HostProfile hostprofile = (HostProfile) invokeModule(HOST_PROFILE_MODULE + "/hostprofile/" + id, HostProfile.class);
if (hostprofile != null) {
    final PlatformUser platformuser1 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + hostprofile.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 hostprofile;


4.2 LISTING PHOTO


ListingPhotoHostProfileModuleAirbnb

Properties (5)

PropertyTypeEntityReferenceModule
(1) CaptionSTRINGListingPhoto
(2) CreatedAtDATEListingPhoto
(3) ListingLONGListingPhotoListingListingModule
(4) SortOrderINTListingPhoto
(5) UrlSTRINGListingPhoto





Example:

final ListingPhoto listingphoto = (ListingPhoto) invokeModule(HOST_PROFILE_MODULE + "/listingphoto/" + id, ListingPhoto.class);
if (listingphoto != null) {
    final Listing listing1 = (Listing) invokeModule(LISTING_MODULE + "/listing/" + listingphoto.getListing().getId(), Listing.class);
    if (listing1 != null) {
        final Country country2 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + listing1.getCountry().getId(), Country.class);
        if (country2 != null) {
        }
        final City city3 = (City) invokeModule(LISTING_MODULE + "/city/" + listing1.getCity().getId(), City.class);
        if (city3 != null) {
            final Country country4 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city3.getCountry().getId(), Country.class);
            if (country4 != null) {
            }
        }
        final HostProfile hostprofile5 = (HostProfile) invokeModule(HOST_PROFILE_MODULE + "/hostprofile/" + listing1.getHostProfile().getId(), HostProfile.class);
        if (hostprofile5 != null) {
            final PlatformUser platformuser6 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + hostprofile5.getPlatformUser().getId(), PlatformUser.class);
            if (platformuser6 != null) {
                final City city7 = (City) invokeModule(LISTING_MODULE + "/city/" + platformuser6.getCity().getId(), City.class);
                if (city7 != null) {
                    final Country country8 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city7.getCountry().getId(), Country.class);
                    if (country8 != null) {
                    }
                }
                final Country country9 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + platformuser6.getCountry().getId(), Country.class);
                if (country9 != null) {
                }
            }
        }
    }
}
return listingphoto;


4.3 PAYOUT


PayoutHostProfileModuleAirbnb

Properties (7)

PropertyTypeEntityReferenceModule
(1) AmountDOUBLEPayout
(2) BookingLONGPayoutBookingListingModule
(3) CurrencySTRINGPayout
(4) HostProfileLONGPayoutHostProfileHostProfileModule
(5) PayoutDateDATEPayout
(6) PayoutMethodSTRINGPayout
(7) PayoutStatusSTRINGPayout





Example:

final Payout payout = (Payout) invokeModule(HOST_PROFILE_MODULE + "/payout/" + id, Payout.class);
if (payout != null) {
    final Booking booking1 = (Booking) invokeModule(LISTING_MODULE + "/booking/" + payout.getBooking().getId(), Booking.class);
    if (booking1 != null) {
        final Listing listing2 = (Listing) invokeModule(LISTING_MODULE + "/listing/" + booking1.getListing().getId(), Listing.class);
        if (listing2 != null) {
            final Country country3 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + listing2.getCountry().getId(), Country.class);
            if (country3 != null) {
            }
            final City city4 = (City) invokeModule(LISTING_MODULE + "/city/" + listing2.getCity().getId(), City.class);
            if (city4 != null) {
                final Country country5 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city4.getCountry().getId(), Country.class);
                if (country5 != null) {
                }
            }
            final HostProfile hostprofile6 = (HostProfile) invokeModule(HOST_PROFILE_MODULE + "/hostprofile/" + listing2.getHostProfile().getId(), HostProfile.class);
            if (hostprofile6 != null) {
                final PlatformUser platformuser7 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + hostprofile6.getPlatformUser().getId(), PlatformUser.class);
                if (platformuser7 != null) {
                    final City city8 = (City) invokeModule(LISTING_MODULE + "/city/" + platformuser7.getCity().getId(), City.class);
                    if (city8 != null) {
                        final Country country9 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city8.getCountry().getId(), Country.class);
                        if (country9 != null) {
                        }
                    }
                    final Country country10 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + platformuser7.getCountry().getId(), Country.class);
                    if (country10 != null) {
                    }
                }
            }
        }
        final GuestProfile guestprofile11 = (GuestProfile) invokeModule(PLATFORM_USER_MODULE + "/guestprofile/" + booking1.getGuestProfile().getId(), GuestProfile.class);
        if (guestprofile11 != null) {
            final PlatformUser platformuser12 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + guestprofile11.getPlatformUser().getId(), PlatformUser.class);
            if (platformuser12 != null) {
                final City city13 = (City) invokeModule(LISTING_MODULE + "/city/" + platformuser12.getCity().getId(), City.class);
                if (city13 != null) {
                    final Country country14 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city13.getCountry().getId(), Country.class);
                    if (country14 != null) {
                    }
                }
                final Country country15 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + platformuser12.getCountry().getId(), Country.class);
                if (country15 != null) {
                }
            }
        }
    }
    final HostProfile hostprofile16 = (HostProfile) invokeModule(HOST_PROFILE_MODULE + "/hostprofile/" + payout.getHostProfile().getId(), HostProfile.class);
    if (hostprofile16 != null) {
        final PlatformUser platformuser17 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + hostprofile16.getPlatformUser().getId(), PlatformUser.class);
        if (platformuser17 != null) {
            final City city18 = (City) invokeModule(LISTING_MODULE + "/city/" + platformuser17.getCity().getId(), City.class);
            if (city18 != null) {
                final Country country19 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city18.getCountry().getId(), Country.class);
                if (country19 != null) {
                }
            }
            final Country country20 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + platformuser17.getCountry().getId(), Country.class);
            if (country20 != null) {
            }
        }
    }
}
return payout;


Overview

Summary

ServicesContactDonateAboutImprint