XMMContent Class Reference
| Inherits from | JSONAPIResourceBase |
|---|---|
| Conforms to | XMMRestResource |
| Declared in | XMMContent.h XMMContent.m |
Other Methods
imagePublicUrl
Public url pointing to an image on our system.
@property (nonatomic, copy) NSString *imagePublicUrlDeclared In
XMMContent.h
contentDescription
Description (Excerpt) of the content.
@property (nonatomic, copy) NSString *contentDescriptionDeclared In
XMMContent.h
language
The language of the content
@property (nonatomic, copy) NSString *languageDeclared In
XMMContent.h
contentBlocks
Array containing items of XMMContentBlock.
@property (nonatomic) NSArray *contentBlocksDeclared In
XMMContent.h
category
Category as an number to specify an icon.
@property (nonatomic) int categoryDeclared In
XMMContent.h
customMeta
Custom meta as dictionary.
@property (nonatomic) NSDictionary *customMetaDeclared 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 ))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
XMMContent.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
XMMContent.m