MCEEvent Class Reference

Inherits from NSObject
Declared in MCEEvent.h
MCEEvent.m

Overview

The MCEEvent class represents events to be sent to the server via the MCEEventService class.

Other Methods

– initWithName:type:

This method initializes an event with a name and a type.

- (instancetype)initWithName:(NSString *)name type:(NSString *)type

Parameters

name

defines the name value of the event.

type

defines the type value of the event.

Discussion

This method initializes an event with a name and a type.

Declared In

MCEEvent.h

– initWithName:type:timestamp:

This method initializes an event with a name, type and timestamp.

- (instancetype)initWithName:(NSString *)name type:(NSString *)type timestamp:(NSDate *)timestamp

Parameters

name

defines the name value of the event.

type

defines the type value of the event.

timestamp

defines the timestamp value of the event.

Discussion

This method initializes an event with a name, type and timestamp.

Declared In

MCEEvent.h

– initWithName:type:timestamp:attributes:

This method initializes an event with a name, type, timestamp and attributes.

- (instancetype)initWithName:(NSString *)name type:(NSString *)type timestamp:(NSDate *)timestamp attributes:(NSDictionary *)attributes

Parameters

name

defines the name value of the event.

type

defines the type value of the event.

timestamp

defines the timestamp value of the event.

attributes

defines the attributes value of the event.

Discussion

This method initializes an event with a name, type, timestamp and attributes.

Declared In

MCEEvent.h

– initWithName:type:timestamp:attributes:attribution:

This method initializes an event with a name, type, timestamp, attributes and attribution.

- (instancetype)initWithName:(NSString *)name type:(NSString *)type timestamp:(NSDate *)timestamp attributes:(NSDictionary *)attributes attribution:(NSString *)attribution

Parameters

name

defines the name value of the event.

type

defines the type value of the event.

timestamp

defines the timestamp value of the event.

attributes

defines the attributes value of the event.

attribution

defines the attribution value of the event.

Discussion

This method initializes an event with a name, type, timestamp, attributes and attribution.

Declared In

MCEEvent.h

– initWithName:type:timestamp:attributes:attribution:mailingId:

This method initializes an event with a name, type, timestamp, attributes, attribution and mailingId.

- (instancetype)initWithName:(NSString *)name type:(NSString *)type timestamp:(NSDate *)timestamp attributes:(NSDictionary *)attributes attribution:(NSString *)attribution mailingId:(id)mailingId

Parameters

name

defines the name value of the event.

type

defines the type value of the event.

timestamp

defines the timestamp value of the event.

attributes

defines the attributes value of the event.

attribution

defines the attribution value of the event.

mailingId

defines the mailingId value of the event.

Discussion

This method initializes an event with a name, type, timestamp, attributes, attribution and mailingId.

Declared In

MCEEvent.h

– mailingId

The mailingId property is used to set the mailingId value of the event. The value should be either an NSNumber or an NSString that holds a number. Other values will be rejected.

- (id)mailingId

Discussion

The mailingId property is used to set the mailingId value of the event. The value should be either an NSNumber or an NSString that holds a number. Other values will be rejected.

Declared In

MCEEvent.h

– fromDictionary:

The fromDictionary: method is used to set the attributes of the event via a dictionary.

- (void)fromDictionary:(NSDictionary *)dictionary

Discussion

The fromDictionary: method is used to set the attributes of the event via a dictionary.

Declared In

MCEEvent.h

– toDictionary

The toDictionary method is used to return the contents of the MCEEvent object as a dictionary.

- (NSDictionary *)toDictionary

Discussion

The toDictionary method is used to return the contents of the MCEEvent object as a dictionary.

Declared In

MCEEvent.h

Other Methods

  type

The type property is used to set the type value of the event.

@property NSString *type

Discussion

The type property is used to set the type value of the event.

Declared In

MCEEvent.h

  name

The name property is used to set the name value of the event.

@property NSString *name

Discussion

The name property is used to set the name value of the event.

Declared In

MCEEvent.h

  timestamp

The timestamp property is used to set the timestamp value of the event.

@property NSDate *timestamp

Discussion

The timestamp property is used to set the timestamp value of the event.

Declared In

MCEEvent.h

  attributes

The attributes property is used to set the attributes value of the event.

@property NSDictionary *attributes

Discussion

The attributes property is used to set the attributes value of the event.

Declared In

MCEEvent.h

  attribution

The attribution property is used to set the attribution value of the event.

@property NSString *attribution

Discussion

The attribution property is used to set the attribution value of the event.

Declared In

MCEEvent.h

  sent

When the event was sent to the server

@property NSDate *sent

Discussion

When the event was sent to the server

Declared In

MCEEvent.h