Overview

Summary

ContactDonateImprint


7. HOST PROFILE MODULE (UI prompt)



Module Entities (7)

EntityAliasModuleGlobal Schema
(1) AvailabilityCalendarAvailabilityCalendarHostProfileModuleAirbnb
(2) BookingBookingBookingModuleAirbnb
(3) HostProfileHostProfileHostProfileModuleAirbnb
(4) ListingListingListingModuleAirbnb
(5) ListingPhotoListingPhotoHostProfileModuleAirbnb
(6) PayoutPayoutHostProfileModuleAirbnb
(7) PlatformUserPlatformUserPlatformUserModuleAirbnb

Module Interfaces (25)

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






7.1 AVAILABILITY CALENDAR


AvailabilityCalendarHostProfileModuleAirbnb

Properties (7)

PropertyTypeEntityReferenceModule
(1) CurrencySTRINGAvailabilityCalendar
(2) DateDATEAvailabilityCalendar
(3) IsAvailableBOOLAvailabilityCalendar
(4) ListingLONGAvailabilityCalendarListingListingModule
(5) MaximumNightsINTAvailabilityCalendar
(6) MinimumNightsINTAvailabilityCalendar
(7) PricePerNightDOUBLEAvailabilityCalendar





Example:

final AvailabilityCalendar availabilitycalendar = (AvailabilityCalendar) invokeModule(HOST_PROFILE_MODULE + "/availabilitycalendar/" + id, AvailabilityCalendar.class);
if (availabilitycalendar != null) {
    final Listing listing1 = (Listing) invokeModule(LISTING_MODULE + "/listing/" + availabilitycalendar.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 availabilitycalendar;


7.2 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;


7.3 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;


7.4 PAYOUT


PayoutHostProfileModuleAirbnb

Properties (7)

PropertyTypeEntityReferenceModule
(1) AmountDOUBLEPayout
(2) BookingLONGPayoutBookingBookingModule
(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(BOOKING_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(BOOKING_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

ContactDonateImprint