Warning

This feature is available in the Full MapKit SDK version

MMKSearchWorkingHoursState

@interface MMKSearchWorkingHoursState : NSObject

Describes if an organization is open or closed now.

Summary

Class methods

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

Properties

@property (nonatomic, readonly, nullable) NSNumber *isOpenNow;
Is open right now

@property (nonatomic, readonly, nullable) NSString *text;
Human-readable localized description of current state

@property (nonatomic, readonly, nullable) NSString *shortText;
Human-readable short localized description of current state

@property (nonatomic, readonly, nonnull) NSArray<NSString *> *tags;
One of the following 3 tags: 'break', 'opening_soon', 'closing_soon'

Class methods

workingHoursStateWithIsOpenNow:text:shortText:tags:

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


Properties

isOpenNow

@property (nonatomic, readonly, nullable) NSNumber *isOpenNow;

Is open right now.

Optional field, can be nil.


text

@property (nonatomic, readonly, nullable) NSString *text;

Human-readable localized description of current state.

Optional field, can be nil.


shortText

@property (nonatomic, readonly, nullable) NSString *shortText;

Human-readable short localized description of current state.

Optional field, can be nil.


tags

@property (nonatomic, readonly, nonnull) NSArray<NSString *> *tags;

One of the following 3 tags: 'break', 'opening_soon', 'closing_soon'. Additional tag values may be added eventually.