Class YMKSearchWorkingHoursState

Describes if an organization is open or closed now.

Class Methods

Properties

isOpenNow

Is open right now.

shortText

Human-readable short localized description of current state.

tags

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

text

Human-readable localized description of current state.

Method Detail

+workingHoursStateWithIsOpenNow:text:shortText:tags:

+ (nonnull YMKSearchWorkingHoursState *)workingHoursStateWithIsOpenNow:(nullable NSNumber *)isOpenNow
                                                                  text:(nullable NSString *)text
                                                             shortText:(nullable NSString *)shortText
                                                                  tags:(nonnull NSArray< NSString * > *)tags 

Property Detail

isOpenNow

(assign, readonly) NSNumber * isOpenNow

Is open right now.

Optional property, can be null.

shortText

(assign, readonly) NSString * shortText

Human-readable short localized description of current state.

For example, "До 20:00".

Optional property, can be null.

tags

(assign, readonly) NSArray< NSString * > * tags

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

Additional tag values may be added eventually.

text

(assign, readonly) NSString * text

Human-readable localized description of current state.

For example, "Закроется в 20:00".

Optional property, can be null.