Overview

Summary

ContactDonateImprint


Appendix E-35: LISTING PHOTO (UI prompt)


ListingPhotoHostProfileModuleAirbnb

Properties (5)

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


Module Interfaces (6)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /listingphoto/{id}updateListingPhotoById(listingphoto)HostProfileModulePUTListingPhoto
(2) /listingphoto/listing/{id}findAllListingPhotoOfListing(id)HostProfileModuleGETListing ListingPhoto
(3) /listingphotoinsertListingPhoto(listingphoto)HostProfileModulePOSTListingPhoto
(4) /listingphoto/{id}findListingPhotoById(id)HostProfileModuleGETListingPhoto
(5) /listingphoto/{id}deleteListingPhotoById(id)HostProfileModuleDELETEListingPhoto
(6) /listingphotofindAllListingPhoto()HostProfileModuleGETListingPhoto





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;


Overview

Summary

ContactDonateImprint