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 *spotDescriptionDeclared In
XMMSpot.h
image
Public url pointing to an image on our system.
@property (nonatomic, copy) NSString *imageDeclared In
XMMSpot.h
category
Category as an number to specify an icon.
@property (nonatomic) int categoryDeclared In
XMMSpot.h
locationDictionary
Dictionary with keys “lat” and “lon”.
@property (nonatomic) NSMutableDictionary *locationDictionaryDeclared In
XMMSpot.h
tags
NSArray containing all tags of the spot.
@property (nonatomic) NSArray *tagsDeclared In
XMMSpot.h
customMeta
Custom meta as dictionary.
@property (nonatomic) NSDictionary *customMetaDeclared 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 ))downloadCompletionParameters
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>)objectDeclared In
XMMRestResource.h
– initWithCoreDataObject:excludeRelations:
Initialize entity with offline saved entity and don’t add relations.
- (instancetype)initWithCoreDataObject:(id<XMMCDResource>)object excludeRelations:(Boolean)excludeRelationsDeclared In
XMMRestResource.h
– saveOffline
Save offline copy of this entity.
- (id<XMMCDResource>)saveOfflineDeclared In
XMMRestResource.h
– deleteOfflineCopy
Delete offline saved copy of this entity.
- (void)deleteOfflineCopyDeclared In
XMMRestResource.h
Extension Methods
customMetaArray
Custom meta as list of key value objects.
@property (nonatomic) NSArray *customMetaArrayDeclared In
XMMSpot.m