UPBaseEventAPI Class Reference
Inherits from | NSObject |
Declared in | UPBaseEventAPI.h UPBaseEventAPI.m |
Class Methods
deleteEvent:completion:
Deletes a single event from the UP platform.
+ (void)deleteEvent:(UPBaseEvent *)event completion:(UPBaseEventAPICompletion)completion
Parameters
- event
The event to DELETE.
- completion
The completion block, which provides the result, full response, and error.
Discussion
Deletes a single event from the UP platform.
Declared In
UPBaseEventAPI.h
getEventsOfType:destinationClass:completion:
Gets events of a specific type.
+ (void)getEventsOfType:(NSString *)type destinationClass:(Class)destClass completion:(UPBaseEventAPICompletion)completion
Parameters
- type
The API type used in the GET request (i.e. moves, sleeps)
- destClass
The destination class to map the resulting objects
- completion
The completion block, which provides the result, full response, and error.
Discussion
Gets events of a specific type.
Declared In
UPBaseEventAPI.h
postEvent:completion:
Posts a new event to the UP platform.
+ (void)postEvent:(UPBaseEvent *)event completion:(UPBaseEventAPICompletion)completion
Parameters
- event
The event to POST.
- completion
The completion block, which provides the result, full response, and error.
Discussion
Posts a new event to the UP platform.
Declared In
UPBaseEventAPI.h
refreshEvent:completion:
Requests a single event, based on an xid.
+ (void)refreshEvent:(UPBaseEvent *)event completion:(UPBaseEventAPICompletion)completion
Parameters
- event
The event to GET.
- completion
The completion block, which provides the result, full response, and error.
Discussion
Requests a single event, based on an xid.
Declared In
UPBaseEventAPI.h
updateEvent:completion:
Updates an existing event on the UP platform.
+ (void)updateEvent:(UPBaseEvent *)event completion:(UPBaseEventAPICompletion)completion
Parameters
- event
The event to POST.
- completion
The completion block, which provides the result, full response, and error.
Discussion
Updates an existing event on the UP platform.
Declared In
UPBaseEventAPI.h