Class BusinessResultMetadata

Warning

This feature is available in the Full MapKit SDK version

Package world.mappable.mapkit.search

java.lang.Object
    ↳ world.mappable.mapkit.search.BusinessResultMetadata

class BusinessResultMetadata implements Serializable

Common info for business search response.

Summary

Constructors

Signature and Description

BusinessResultMetadata()
Use constructor with parameters in your code.

BusinessResultMetadata(@NonNull java.util.List<Category> categories,
                       @NonNull java.util.List<Chain> chains,
                       @NonNull java.util.List<BusinessFilter> businessFilters,
                       @Nullable FilterSet importantFilters,
                       @NonNull java.util.List<java.lang.String> pricesCurrencies)

Methods

Type and modifiers

Method and Description

synchronized java.util.List<Category>

getCategories()
List of categories (also known as rubrics) present in response.

synchronized java.util.List<Chain>

getChains()
List of chains present in response.

synchronized java.util.List<BusinessFilter>

getBusinessFilters()
List of applicable filters.

synchronized FilterSet

getImportantFilters()
Collection of filters that probably are of utmost interest to the user.

synchronized java.util.List<java.lang.String>

getPricesCurrencies()
Relevant currency for the prices

void

serialize(world.mappable.runtime.bindings.Archive archive)

static java.lang.String

getNativeName()

Constuctors

BusinessResultMetadata

BusinessResultMetadata()

Use constructor with parameters in your code.

This one is for serialization only!


BusinessResultMetadata

BusinessResultMetadata(@NonNull java.util.List<Category> categories,
                       @NonNull java.util.List<Chain> chains,
                       @NonNull java.util.List<BusinessFilter> businessFilters,
                       @Nullable FilterSet importantFilters,
                       @NonNull java.util.List<java.lang.String> pricesCurrencies)


Methods

getCategories

@NonNull
java.util.List<Category> getCategories()

List of categories (also known as rubrics) present in response.

Non-empty list means that the request was treated as a 'category request' by the server (for example requests like "where to eat", "cinema", and other).


getChains

@NonNull
java.util.List<Chain> getChains()

List of chains present in response.

Non-empty list means that the request was treaded as 'chain request' (for example "mcdonalds", "starbucks", and other).


getBusinessFilters

@NonNull
java.util.List<BusinessFilter> getBusinessFilters()

List of applicable filters.


getImportantFilters

@Nullable
FilterSet getImportantFilters()

Collection of filters that probably are of utmost interest to the user.

Optional field, can be null.


getPricesCurrencies

@NonNull
java.util.List<java.lang.String> getPricesCurrencies()

Relevant currency for the prices


serialize

@Override
void serialize(world.mappable.runtime.bindings.Archive archive)


getNativeName

java.lang.String getNativeName()