Class FuelMetadata

com.yandex.mapkit.search

java.lang.Object ⇽ FuelMetadata

public class FuelMetadata

Fuel snippet.

Constructors

FuelMetadata()

Use constructor with parameters in your code.

FuelMetadata(_Nullable Long timestamp, _NonNull List< FuelType > fuels, _Nullable Attribution attribution)

Methods

synchronized Attribution getAttribution()

Attribution information.

synchronized List< FuelType > getFuels()

Fuel list.

String getNativeName()
synchronized Long getTimestamp()

Snippet update time as UNIX timestamp.

void serialize(Archive archive)

Constructor Detail

FuelMetadata

public FuelMetadata ()

Use constructor with parameters in your code.

This one is for serialization only!

FuelMetadata

public FuelMetadata (@Nullable Long timestamp, @NonNull List< FuelType > fuels, @Nullable Attribution attribution)

Method Detail

getAttribution

public synchronized Attribution getAttribution ()

Attribution information.

Optional field, can be null.

getFuels

public synchronized List< FuelType > getFuels ()

Fuel list.

getNativeName

public static String getNativeName ()

getTimestamp

public synchronized Long getTimestamp ()

Snippet update time as UNIX timestamp.

Optional field, can be null.

serialize

public void serialize (Archive archive)