SBBActivityEventManager Class Reference

Inherits from SBBBridgeAPIManager : NSObject
Conforms to SBBActivityEventManagerProtocol
SBBComponent
Declared in SBBActivityEventManager.h
SBBActivityEventManager.m

Overview

This class handles communication with the Bridge ActivityEvents API.

– createActivityEvent:withTimestamp:completion:

Create an activity event in Bridge.

- (NSURLSessionTask *)createActivityEvent:(NSString *)eventKey withTimestamp:(NSDate *)timestamp completion:(SBBActivityEventManagerCompletionBlock)completion

Parameters

eventKey

The event key for the activity event.

timestamp

The date/time with which to timestamp the event.

completion

An SBBActivityEventManagerCompletionBlock to be called upon completion. Optional.

Return Value

An NSURLSessionTask object so you can cancel or suspend/resume the request.

Declared In

SBBActivityEventManager.h

– getActivityEvents:

Get all the activity events for this participant from Bridge.

- (NSURLSessionTask *)getActivityEvents:(SBBActivityEventManagerGetCompletionBlock)completion

Parameters

completion

An SBBActivityEventManagerGetCompletionBlock to be called upon completion.

Return Value

An NSURLSessionTask object so you can cancel or suspend/resume the request.

Declared In

SBBActivityEventManager.h