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 |
ListingData Nested object containing the fields listingResponseData, reviewResponseData, recommendationResponseData
# static loadListingsData(filterSettings) → {array}
Returns the fetched listings information from the api given the filter parameters.
Parameters:
Name | Type | Description |
---|---|---|
filterSettings |
Object | Filter parameters |
An array containing listing objects, or if an exception was raised while trying to fetch the data, an empty array is returned.
array