Class Advertisement

com.yandex.mapkit.search

java.lang.Object ⇽ Advertisement

public class Advertisement

Constructor Detail

Advertisement

public Advertisement ()

Use constructor with parameters in your code.

This one is for serialization only!

Advertisement

public Advertisement (@Nullable TextData textData, @Nullable Promo promo, @NonNull List< Product > products, @Nullable String about, @Nullable Image logo, @Nullable Image photo, @NonNull List< TaggedImage > taggedImages, @Nullable String logId, @NonNull List< KeyValuePair > properties)

Method Detail

getAbout

public synchronized String getAbout ()

Company detailed description.

Optional field, can be null.

getLogId

public synchronized String getLogId ()

Human-readable identifier for logging.

Optional field, can be null.

getNativeName

public static String getNativeName ()

getPhoto

public synchronized Image getPhoto ()

Photo.

Optional field, can be null.

getProducts

public synchronized List< Product > getProducts ()

Products.

getPromo

public synchronized Promo getPromo ()

Promo.

Optional field, can be null.

getProperties

public synchronized List< KeyValuePair > getProperties ()

Additional advertisement properties.

getTaggedImages

public synchronized List< TaggedImage > getTaggedImages ()

Additional typed images.

getTextData

public synchronized TextData getTextData ()

Text advert.

Optional field, can be null.

serialize

public void serialize (Archive archive)