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)

Methods

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)

Method Detail

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)