Class CollectionObjectMetadata

com.yandex.mapkit.search

java.lang.Object ⇽ CollectionObjectMetadata

public class CollectionObjectMetadata

Contains information about a collection.

Constructors

CollectionObjectMetadata()

Use constructor with parameters in your code.

CollectionObjectMetadata(@NonNull String id, @Nullable String photoUrlTemplate, @NonNull List< KeyValuePair > properties)

Methods

synchronized String getId()

Machine readable collection identifier.

String getNativeName()
synchronized String getPhotoUrlTemplate()

Collection photo URL.

synchronized List< KeyValuePair > getProperties()

Some additional collection properties.

void serialize(Archive archive)

Constructor Detail

CollectionObjectMetadata

public CollectionObjectMetadata ()

Use constructor with parameters in your code.

This one is for serialization only!

CollectionObjectMetadata

public CollectionObjectMetadata (@NonNull String id, @Nullable String photoUrlTemplate, @NonNull List< KeyValuePair > properties)

Method Detail

getId

public synchronized String getId ()

Machine readable collection identifier.

getNativeName

public static String getNativeName ()

getPhotoUrlTemplate

public synchronized String getPhotoUrlTemplate ()

Collection photo URL.

Optional field, can be null.

getProperties

public synchronized List< KeyValuePair > getProperties ()

Some additional collection properties.

For example, [ {"key": "short_title", "value": "Лучшие места для ужина"}, {"key": "subtitle", "value": "15 мест"}, ].

serialize

public void serialize (Archive archive)