LimeContent Class Reference
Inherits from | LimeObject : NSObject |
Conforms to | NSCoding |
Declared in | LimeContent.h LimeContent.m |
Overview
A class representing a specific detailed content to be displayed in the mobile application.
Properties
name
Name of the content, as specified in the CMS.
@property (nonatomic, strong) NSString *name
Discussion
Name of the content, as specified in the CMS.
Declared In
LimeContent.h
payload
Data payload of the content, that actually represents the content to be displayed.
@property (nonatomic, strong) NSString *payload
Discussion
Data payload of the content, that actually represents the content to be displayed.
Declared In
LimeContent.h
rid
Record ID - can be assigned only if object is returned from the API and backed by a DB record.
@property (nonatomic, strong) NSNumber *rid
Discussion
Record ID - can be assigned only if object is returned from the API and backed by a DB record.
Declared In
LimeContent.h
type
Type of the content, as specified in the CMS. Can be either: application/vnd.lime-json, application/vnd.lime-redirect, or application/vnd.lime-website.
@property (nonatomic, strong) NSString *type
Discussion
Type of the content, as specified in the CMS. Can be either: application/vnd.lime-json, application/vnd.lime-redirect, or application/vnd.lime-website.
Declared In
LimeContent.h
Instance Methods
initWithDictionary:
Initialize an object with the contents of the dictionary.
- (id)initWithDictionary:(NSDictionary *)dictionary
Parameters
- dictionary
An NSDictionary to be used for initializing object properties.
Return Value
This implementation of method alway raises an exception - subclass must override this method.
Discussion
Initialize an object with the contents of the dictionary.
WARNING: The default implementation in LimeObject class raises an exception. Make sure you override the method in your subclasses.
Declared In
LimeObject.h