Inherits from LimeObject : NSObject
Conforms to NSCoding
Declared in LimeContentRule.h
LimeContentRule.m

Overview

A class representing content rules - basically a prescription for displaying a content.

Tasks

Other Methods

Other Methods

Properties

abstractBeacon

A beacon or geofence that is related to this content rule.

@property (nonatomic, strong) id<LimeRegionObjectProtocol> abstractBeacon

Discussion

A beacon or geofence that is related to this content rule.

Declared In

LimeContentRule.h

content

An associated detailed content.

@property (nonatomic, strong) LimeContent *content

Discussion

An associated detailed content.

Declared In

LimeContentRule.h

imageUrl

URL for a image related to the content rule. Used for the content rule visual presentation purpose.

@property (nonatomic, strong) NSString *imageUrl

Discussion

URL for a image related to the content rule. Used for the content rule visual presentation purpose.

Declared In

LimeContentRule.h

notification

An associated notification

@property (nonatomic, strong) LimeNotification *notification

Discussion

An associated notification

Declared In

LimeContentRule.h

perex

Short perex description of the content rule. Used for the content rule visual presentation purpose.

@property (nonatomic, strong) NSString *perex

Discussion

Short perex description of the content rule. Used for the content rule visual presentation purpose.

Declared In

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

LimeContentRule.h

shareUrl

URL used when sharing the content associated with the content rule. Used for the content rule visual presesentation purpose.

@property (nonatomic, strong) NSString *shareUrl

Discussion

URL used when sharing the content associated with the content rule. Used for the content rule visual presesentation purpose.

Declared In

LimeContentRule.h

title

Title of the content rule. Used for content rule visual presentation purpose.

@property (nonatomic, strong) NSString *title

Discussion

Title of the content rule. Used for content rule visual presentation purpose.

Declared In

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