XMMSpot Class Reference
Inherits from | JSONAPIResourceBase |
---|---|
Conforms to | XMMRestResource |
Declared in | XMMSpot.h XMMSpot.m |
Other Methods
spotDescription
The description of the spot. (E.g. “on the front door of the xamoom office”)
@property (nonatomic, copy) NSString *spotDescription
Declared In
XMMSpot.h
image
Public url pointing to an image on our system.
@property (nonatomic, copy) NSString *image
Declared In
XMMSpot.h
category
Category as an number to specify an icon.
@property (nonatomic) int category
Declared In
XMMSpot.h
locationDictionary
Dictionary with keys “lat” and “lon”.
@property (nonatomic) NSMutableDictionary *locationDictionary
Declared In
XMMSpot.h
tags
NSArray containing all tags of the spot.
@property (nonatomic) NSArray *tags
Declared In
XMMSpot.h
customMeta
Custom meta as dictionary.
@property (nonatomic) NSDictionary *customMeta
Declared In
XMMSpot.h
– saveOffline:
Save this entity for offline use with callback for downloaded files.
- (id<XMMCDResource>)saveOffline:(void ( ^ ) ( NSString *url , NSData *data , NSError *error ))downloadCompletion
Parameters
downloadCompletion |
Completion block called after finishing download - param1 url Url of the saved file - param1 data Data of the saved file - param2 error NSError, can be null |
---|
Declared In
XMMSpot.h
Other Methods
– initWithCoreDataObject:
Initialize entity with offline saved entity.
- (instancetype)initWithCoreDataObject:(id<XMMCDResource>)object
Declared In
XMMRestResource.h
– initWithCoreDataObject:excludeRelations:
Initialize entity with offline saved entity and don’t add relations.
- (instancetype)initWithCoreDataObject:(id<XMMCDResource>)object excludeRelations:(Boolean)excludeRelations
Declared In
XMMRestResource.h
– saveOffline
Save offline copy of this entity.
- (id<XMMCDResource>)saveOffline
Declared In
XMMRestResource.h
– deleteOfflineCopy
Delete offline saved copy of this entity.
- (void)deleteOfflineCopy
Declared In
XMMRestResource.h
Extension Methods
customMetaArray
Custom meta as list of key value objects.
@property (nonatomic) NSArray *customMetaArray
Declared In
XMMSpot.m