Overview

Summary

ContactDonateImprint


Appendix E-8: LISTING AMENITY (UI prompt)


ListingAmenityAmenityModuleAirbnb

Properties (2)

PropertyTypeEntityReferenceModule
(1) AmenityLONGListingAmenityAmenityAmenityModule
(2) ListingLONGListingAmenityListingListingModule


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /listingamenity/amenity/{id}findAllListingAmenityOfAmenity(id)AmenityModuleGETAmenity ListingAmenity
(2) /listingamenity/listing/{id}findAllListingAmenityOfListing(id)AmenityModuleGETListing ListingAmenity
(3) /listingamenityfindAllListingAmenity()AmenityModuleGETListingAmenity
(4) /listingamenity/{id}findListingAmenityById(id)AmenityModuleGETListingAmenity
(5) /listingamenity/{id}updateListingAmenityById(listingamenity)AmenityModulePUTListingAmenity
(6) /listingamenity/{id}deleteListingAmenityById(id)AmenityModuleDELETEListingAmenity
(7) /listingamenityinsertListingAmenity(listingamenity)AmenityModulePOSTListingAmenity





Example:

final ListingAmenity listingamenity = (ListingAmenity) invokeModule(AMENITY_MODULE + "/listingamenity/" + id, ListingAmenity.class);
if (listingamenity != null) {
    final Listing listing1 = (Listing) invokeModule(LISTING_MODULE + "/listing/" + listingamenity.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) {
                }
            }
        }
    }
    final Amenity amenity10 = (Amenity) invokeModule(AMENITY_MODULE + "/amenity/" + listingamenity.getAmenity().getId(), Amenity.class);
    if (amenity10 != null) {
    }
}
return listingamenity;


Overview

Summary

ContactDonateImprint