9#define kLocationPropertyDescription @"description"
10#define kLocationPropertyDirections @"directions"
11#define kLocationPropertyImage @"image"
12#define kLocationPropertyOpeningHours @"openingHours"
13#define kLocationPropertyContact @"contact"
14#define kLocationPropertyPhone @"phone"
15#define kLocationPropertyDate @"date"
16#define kLocationPropertyEmail @"email"
17#define kLocationPropertyFax @"fax"
18#define kLocationPropertyTags @"_tags"
19#define kLocationPropertyUrl @"www"
20#define kLocationPropertyVideo @"video"
22#import "MPJSONModel.h"
24#import <UIKit/UIKit.h>
26@class GMSCoordinateBounds;
44- (nullable instancetype) initWithPoint:(nullable
MPPoint*)point andName:(nullable NSString*)name DEPRECATED_MSG_ATTRIBUTE("Use
MPLocationUpdate instead");
49- (nullable instancetype) initWithLocation:(nullable
MPLocation*)location DEPRECATED_MSG_ATTRIBUTE("Use
MPLocationUpdate instead");
54@property (nonatomic, strong, nullable, readonly) NSString *
locationId;
58@property (nonatomic, strong, nullable, readonly) NSString *
type;
63@property (nonatomic, strong, nullable, readonly) NSNumber<Optional> *
activeFrom DEPRECATED_ATTRIBUTE;
68@property (nonatomic, strong, nullable, readonly) NSNumber<Optional> *
activeTo DEPRECATED_ATTRIBUTE;
72@property (nonatomic, strong, nullable, readonly) NSString<Optional> *
venue;
76@property (nonatomic, strong, nullable, readonly) NSString<Optional> *
building;
81@property (nonatomic, strong, nullable, readonly) NSString<Optional> *
roomId DEPRECATED_MSG_ATTRIBUTE(
"Use externalId instead");
85@property (nonatomic, strong, nullable, readonly) NSString<Optional> *
externalId;
89@property (nonatomic, strong, nullable, readonly) NSString<Optional> *
descr;
94@property (nonatomic, strong, nullable, readonly) NSDictionary<NSString*, MPLocationField*><Optional, MPLocationField> *
fields;
100- (nullable
MPLocationField*) getFieldForKey:(nonnull NSString*)key NS_SWIFT_NAME(getField(forKey:));
104@property (nonatomic, strong, nullable, readonly) NSArray<NSString*> *
aliases;
108@property (nonatomic, strong, nullable, readonly) NSString *
name;
112@property (nonatomic, strong, nullable, readonly) NSNumber*
floor;
116@property (nonatomic, strong, nullable, readonly) NSString*
floorName;
120@property (nonatomic, strong, nullable, readonly) NSMutableDictionary *
categories;
125@property (nonatomic, strong, nullable, readonly) NSMutableDictionary *
properties DEPRECATED_MSG_ATTRIBUTE(
"Use fields dictionary instead");
137@property (nonatomic, strong, nullable, readonly) GMSMarker *
marker DEPRECATED_MSG_ATTRIBUTE(
"Getting a marker from a location is not supported anymore, if you need to change the appearance of a location, create MPDisplaySettings for this");
141@property (nonatomic, strong, nullable, readonly) UIImage *
image DEPRECATED_MSG_ATTRIBUTE(
"Use -fields to get properties like image, description etc.");
146@property (nonatomic, strong, nullable, readonly) NSString*
imageURL;
150@property (nonatomic, strong, nullable, readonly) NSNumber*
sourceId;
155@property (nonatomic, strong, nullable, readonly) UIImage*
icon;
160@property (nonatomic, strong, nullable, readonly) NSURL*
iconUrl;
169@property (nonatomic, strong, nullable, readonly) NSArray<NSString*>*
restrictions;
174- (nullable
MPPoint*)
getPoint DEPRECATED_MSG_ATTRIBUTE("Use -getGeometry instead.");
179- (nullable
MPLocationProperty*)getProperty:(nullable NSString*)propertyType DEPRECATED_MSG_ATTRIBUTE("Use -getFields instead.");
187- (nullable NSObject*)getLiveValueForKey:(nonnull NSString*)key domainType:(nonnull NSString*)domainType;
191- (nullable
MPLiveUpdate*) getLiveUpdateForDomainType:(nonnull NSString*)domainType;
MPLocationBaseType
Definition MPLocationBaseType.h:12
@ building
Definition NSString+CustomFont.h:50
@ image
Definition NSString+CustomFont.h:45
Model for a Live Update. Used in MPLiveDataManagerDelegate and MPLocation::getLiveUpdate().
Definition MPLiveUpdate.h:17
Definition MPLocationField.h:21
Definition MPLocation.h:38
NSString< Optional > * roomId
Definition MPLocation.h:81
NSString * imageURL
Definition MPLocation.h:146
NSString * type
Definition MPLocation.h:58
NSNumber< Optional > * activeFrom
Definition MPLocation.h:63
MPPoint< Ignore > * geometry
Definition MPLocation.h:133
NSString< Optional > * externalId
Definition MPLocation.h:85
NSString * locationId
Definition MPLocation.h:54
NSNumber< Optional > * activeTo
Definition MPLocation.h:68
NSMutableDictionary * categories
Definition MPLocation.h:120
BOOL isBookable
Definition MPLocation.h:201
NSArray< NSString * > * aliases
Definition MPLocation.h:104
NSString< Optional > * descr
Definition MPLocation.h:89
BOOL isIndoors
Definition MPLocation.h:196
NSURL * iconUrl
Definition MPLocation.h:160
GMSMarker * marker
Definition MPLocation.h:137
NSMutableDictionary * properties
Definition MPLocation.h:125
NSNumber * sourceId
Definition MPLocation.h:150
NSString< Optional > * venue
Definition MPLocation.h:72
NSString * floorName
Definition MPLocation.h:116
NSNumber * floor
Definition MPLocation.h:112
NSArray< NSString * > * restrictions
Definition MPLocation.h:169
MPLocationBaseType baseType
Definition MPLocation.h:164
nullable MPPoint * getPoint()
nullable GMSCoordinateBounds * getCoordinateBounds()
NSString * name
Definition MPLocation.h:108
NSDictionary< NSString *, MPLocationField * >< Optional, MPLocationField > * fields
Definition MPLocation.h:94
UIImage * icon
Definition MPLocation.h:155
Definition MPLocationProperty.h:15
Definition MPLocationUpdate.h:26