XMMSpot Class Reference

Inherits from JSONAPIResourceBase
Conforms to XMMRestResource
Declared in XMMSpot.h
XMMSpot.m

Overview

XMMSpot is localized.

Other Methods

  name

The displayName of the spot.

@property (nonatomic, copy) NSString *name

Declared In

XMMSpot.h

  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

  latitude

The latitude of the spot

@property (nonatomic) double latitude

Declared In

XMMSpot.h

  longitude

The longitude of the spot

@property (nonatomic) double longitude

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

  content

Linked content to the spot.

@property (nonatomic) XMMContent *content

Declared In

XMMSpot.h

  markers

Linked markers to the spot.

@property (nonatomic) NSArray *markers

Declared In

XMMSpot.h

  system

System from the spot.

@property (nonatomic) XMMSystem *system

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

+ resourceName

JSONApi resource name.

+ (NSString *)resourceName

Declared In

XMMRestResource.h

– 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