Class State

com.yandex.mapkit.search

java.lang.Object ⇽ State

public class State

Describes if an organization is open or closed now.

Constructors

State()

Use constructor with parameters in your code.

State(@Nullable Boolean isOpenNow, @Nullable String text, @Nullable String shortText, @NonNull List< String > tags)

Methods

synchronized Boolean getIsOpenNow()

Is open right now.

String getNativeName()
synchronized String getShortText()

Human-readable short localized description of current state.

synchronized List< String > getTags()

One of the following 3 tags: 'break', 'opening_soon', 'closing_soon'.

synchronized String getText()

Human-readable localized description of current state.

void serialize(Archive archive)

Constructor Detail

State

public State ()

Use constructor with parameters in your code.

This one is for serialization only!

State

public State (@Nullable Boolean isOpenNow, @Nullable String text, @Nullable String shortText, @NonNull List< String > tags)

Method Detail

getIsOpenNow

public synchronized Boolean getIsOpenNow ()

Is open right now.

Optional field, can be null.

getNativeName

public static String getNativeName ()

getShortText

public synchronized String getShortText ()

Human-readable short localized description of current state.

For example, "До 20:00".Optional field, can be null.

getTags

public synchronized List< String > getTags ()

One of the following 3 tags: 'break', 'opening_soon', 'closing_soon'.

Additional tag values may be added eventually.

getText

public synchronized String getText ()

Human-readable localized description of current state.

For example, "Закроется в 20:00".Optional field, can be null.

serialize

public void serialize (Archive archive)