UPGenericEvent Class Reference
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)
Tasks
Other Methods
-
+ eventWithTitle:verb:attributes:note:image:
-
+ eventWithTitle:verb:attributes:note:imageURL:
-
verb
property -
attributes
property -
note
property -
imageURL
property -
image
property
Other Methods
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
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