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 *nameDiscussion
Name of the content, as specified in the CMS.
Declared In
LimeContent.hpayload
Data payload of the content, that actually represents the content to be displayed.
@property (nonatomic, strong) NSString *payloadDiscussion
Data payload of the content, that actually represents the content to be displayed.
Declared In
LimeContent.hrid
Record ID - can be assigned only if object is returned from the API and backed by a DB record.
@property (nonatomic, strong) NSNumber *ridDiscussion
Record ID - can be assigned only if object is returned from the API and backed by a DB record.
Declared In
LimeContent.htype
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 *typeDiscussion
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.hInstance Methods
initWithDictionary:
Initialize an object with the contents of the dictionary.
- (id)initWithDictionary:(NSDictionary *)dictionaryParameters
- 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