Module

appService

Methods

# static clickListingHandler(key, filterParams) → {ListingData}

Returns an object containing the fetched listing information, the corresponding reviews and recommendations that were calculated based on the listing that was clicked on.

Parameters:
Name Type Description
key number

Unique id of a listing

filterParams filterSettings

Filter parameters

View Source services/appService.js, line 20

ListingData Nested object containing the fields listingResponseData, reviewResponseData, recommendationResponseData

ListingData

# static loadListingsData(filterSettings) → {array}

Returns the fetched listings information from the api given the filter parameters.

Parameters:
Name Type Description
filterSettings Object

Filter parameters

View Source services/appService.js, line 61

An array containing listing objects, or if an exception was raised while trying to fetch the data, an empty array is returned.

array