Inherits from UPBaseEvent : NSObject
Declared in UPGenericEventAPI.h
UPGenericEventAPI.m

Overview

A generic event represents any event posted to the UP platform that isn’t already represented. This can be used for generic messaging, or events that are specific to 3rd party application (i.e. posting a photo)

Properties

attributes

Set of attributes associated with the event (used in the feed story).

@property (nonatomic, strong) NSDictionary *attributes

Discussion

Set of attributes associated with the event (used in the feed story).

Declared In

UPGenericEventAPI.h

image

Event image.

@property (nonatomic, strong) UPImage *image

Discussion

Event image.

Declared In

UPGenericEventAPI.h

imageURL

URI of the event’s image.

@property (nonatomic, strong) NSString *imageURL

Discussion

URI of the event’s image.

Declared In

UPGenericEventAPI.h

note

Description of the event.

@property (nonatomic, strong) NSString *note

Discussion

Description of the event.

Declared In

UPGenericEventAPI.h

verb

Verb to indicate user action (used in the feed story).

@property (nonatomic, strong) NSString *verb

Discussion

Verb to indicate user action (used in the feed story).

Declared In

UPGenericEventAPI.h

Class Methods

eventWithTitle:verb:attributes:note:image:

Create a new generic event with supplied parameters for the currently authenticated user.

+ (UPGenericEvent *)eventWithTitle:(NSString *)title verb:(NSString *)verb attributes:(NSDictionary *)attributes note:(NSString *)note image:(UPImage *)image

Parameters

title

Title of the new event.

verb

Verb to indicate user action (used in the feed story).

attributes

Set of attributes associated with the event (used in the feed story).

note

Description of the event.

image

Image to include in the event.

Discussion

Create a new generic event with supplied parameters for the currently authenticated user.

Declared In

UPGenericEventAPI.h

eventWithTitle:verb:attributes:note:imageURL:

Create a new generic event with supplied parameters for the currently authenticated user.

+ (UPGenericEvent *)eventWithTitle:(NSString *)title verb:(NSString *)verb attributes:(NSDictionary *)attributes note:(NSString *)note imageURL:(NSString *)imageURL

Parameters

title

Title of the new event.

verb

Verb to indicate user action (used in the feed story).

attributes

Set of attributes associated with the event (used in the feed story).

note

Description of the event.

imageURL

URI of the image to include in the event.

Discussion

Create a new generic event with supplied parameters for the currently authenticated user.

Declared In

UPGenericEventAPI.h

Instance Methods

apiType

- (NSString *)apiType

Declared In

UPBaseEventAPI.h

decodeFromDictionary:

- (void)decodeFromDictionary:(NSDictionary *)dictionary

Declared In

UPBaseEventAPI.h

encodeToDictionary

Encodes an object to a JSON dictionary.

- (NSDictionary *)encodeToDictionary

Discussion

Encodes an object to a JSON dictionary.

Declared In

UPBaseEventAPI.h