Cortex iOS
 All Classes Functions Properties
CoachingEngineAPI Class Reference
Inheritance diagram for CoachingEngineAPI:

Instance Methods

(void) - setupForTesting
 
(BOOL) - postMessage:
 
(NSArray *) - getMessagesForCoach:from:to:
 
(BOOL) - putTask:
 
(NSArray *) - getTasksForCoach:from:to:
 
(NSArray *) - getDomainState:from:to:success:failure:
 
(NSDate *) - getMotivationMessagesEditDate
 
(NSArray *) - getMotivationMessages
 
(NSDate *) - getAdviceMessagesEditDate
 
(NSArray *) - getAdviceMessages
 
(BOOL) - putCoach:
 
(NSArray *) - getCoaches
 
(void) - registerUserWithEmail:andPassword:andSecretCode:andUserInfo:success:failure:
 
(void) - resetPassword:success:failure:
 

Properties

NSString * applicationKey
 
NSString * secretCode
 

Method Documentation

- (NSArray *) getDomainState: (NSString *)  state
from: (NSDate *)  from
to: (NSDate *)  to
success: (void(^)(NSArray *states))  success
failure: (void(^)(NSError *error))  failure 

Get state information for a domain

Parameters
statethe state name. refer to the Coaching engine backend specification for available state
fromunix epoch time start of the data
tounix epoch time end of the data
Returns
NSArray of NSDictionary: {"date": [NSDATE], @"value": [id]} the value can be anything of parsed JSON
- (void) registerUserWithEmail: (NSString*)  email
andPassword: (NSString*)  password
andSecretCode: (NSString*)  secretCode
andUserInfo: (NSDictionary*)  userInfo
success: (void(^)())  success
failure: (void(^)(NSError* error))  failure 

Registers a new user with email and password and connects the user to a specific organization for a specific application based on the secret code that is provided. Success and failure functions can be specified.

Parameters
emailEmail to register
passwordplain text password
successsuccess handler. Called on the main queue
failurefailure handler. Might contain extra info on the error. Called on the main queue
Warning
Function has changed so that it requires a secret code now and cannot be used anymore without specifying a secret code

The documentation for this class was generated from the following files: