Class BusinessResultMetadata

com.yandex.mapkit.search

java.lang.Object ⇽ BusinessResultMetadata

public class BusinessResultMetadata

Common info for business search response.

Constructors

BusinessResultMetadata()

Use constructor with parameters in your code.

BusinessResultMetadata(@NonNull List< Category > categories, @NonNull List< Chain > chains, @NonNull List< BusinessFilter > businessFilters, @Nullable FilterSet importantFilters)

Methods

synchronized List< BusinessFilter > getBusinessFilters()

List of applicable filters.

synchronized List< Category > getCategories()

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

synchronized List< Chain > getChains()

List of chains present in response.

synchronized FilterSet getImportantFilters()

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

String getNativeName()
void serialize(Archive archive)

Constructor Detail

BusinessResultMetadata

public BusinessResultMetadata ()

Use constructor with parameters in your code.

This one is for serialization only!

BusinessResultMetadata

public BusinessResultMetadata (@NonNull List< Category > categories, @NonNull List< Chain > chains, @NonNull List< BusinessFilter > businessFilters, @Nullable FilterSet importantFilters)

Method Detail

getBusinessFilters

public synchronized List< BusinessFilter > getBusinessFilters ()

List of applicable filters.

getCategories

public synchronized 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 (e.g. requests like "where to eat", "cinema", etc.).

getChains

public synchronized List< Chain > getChains ()

List of chains present in response.

Non-empty list means that the request was treaded as 'chain request' (e.g. "mcdonalds", "starbucks", etc.).

getImportantFilters

public synchronized FilterSet getImportantFilters ()

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

Optional field, can be null.

getNativeName

public static String getNativeName ()

serialize

public void serialize (Archive archive)