ConstantContact iOS SDK
Instance Methods | Class Methods | Properties | List of all members
EventItem Class Reference

#import <EventItem.h>

Inheritance diagram for EventItem:

Instance Methods

(id) - initWithDictionary:
 
(NSString *) - JSON
 

Class Methods

(EventItem *) + eventItemWithDictionary:
 

Properties

NSMutableArray * attributes
 
int defaultQuantityAvailable
 
int defaultQuantityTotal
 
NSString * desc
 
NSString * eventItemId
 
NSString * name
 
int perRegistrantLimit
 
double price
 
BOOL showQuantityAvailable
 

Method Documentation

+ (EventItem *) eventItemWithDictionary: (NSDictionary *)  dictionary
- (id) initWithDictionary: (NSDictionary *)  dictionary

Factory method to create a Event Item object from an dictionary

Parameters
NSDictionary*dictionary - associative dictionary of initial properties to set
Returns
EventItem
- (NSString *) JSON

Property Documentation

- (NSMutableArray*) attributes
readnonatomicstrong

An array of item attributes and options, add attributes after the item is created

- (int) defaultQuantityAvailable
readnonatomicassign

Number of items available for sale, displayed on the registration page if show_quantity_available = true.

- (int) defaultQuantityTotal
readwritenonatomicassign

REQUIRED. The total quantity of items offered, minimum = 0, cannot leave blank. If the item has attributes, the summation of the quantity_total for all attributes automatically overwrites the value you enter here.

- (NSString*) desc
readwritenonatomicstrong

The item description shown on the registration page

- (NSString*) eventItemId
readnonatomicstrong

Unique ID of the item

- (NSString*) name
readwritenonatomicstrong

REQUIRED. Name of the item shown on the registration page, minimum length = 1.

- (int) perRegistrantLimit
readwritenonatomicassign

REQUIRED. The maximum number of this item that registrants and guests can purchase, minimum = 0, cannot leave blank; value cannot be greater than the value of default_quantity_available

- (double) price
readwritenonatomicassign

REQUIRED. The item cost, minimum = 0.00

- (BOOL) showQuantityAvailable
readwritenonatomicassign

If true, displays the remaining quantity of this item for purchase on the registration page


The documentation for this class was generated from the following files: