XMMContent Class Reference

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

Overview

XMMContent is localized and containts the different blocks saved in contentBlocks.

Other Methods

  imagePublicUrl

Public url pointing to an image on our system.

@property (nonatomic, copy) NSString *imagePublicUrl

Declared In

XMMContent.h

  contentDescription

Description (Excerpt) of the content.

@property (nonatomic, copy) NSString *contentDescription

Declared In

XMMContent.h

  language

The language of the content

@property (nonatomic, copy) NSString *language

Declared In

XMMContent.h

  contentBlocks

Array containing items of XMMContentBlock.

@property (nonatomic) NSArray *contentBlocks

Declared In

XMMContent.h

  category

Category as an number to specify an icon.

@property (nonatomic) int category

Declared In

XMMContent.h

  tags

Tags set in backend.

@property (nonatomic) NSArray *tags

Declared In

XMMContent.h

  customMeta

Custom meta as dictionary.

@property (nonatomic) NSDictionary *customMeta

Declared In

XMMContent.h

  system

Connected XMMSystem.

@property (nonatomic) XMMSystem *system

Declared In

XMMContent.h

  spot

Connected XMMSpot.

@property (nonatomic) XMMSpot *spot

Declared In

XMMContent.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

XMMContent.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

XMMContent.m