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

Instance Methods

(void) - insertOrUpdateTask:
 
(void) - updateTask:
 
(void) - insertMessage:
 
(NSArray *) - getTasksForCoachType:from:to:
 
(NSArray *) - getPastTasksForCoachType:from:to:
 
(NSArray *) - getPastTasksFrom:to:
 
(NSArray *) - getMessagesForTask:
 
(NSArray *) - getMessagesFrom:to:
 
(void) - synchronizeWithServer
 
(BOOL) - isSynchronized
 
(void) - clearCache
 

Method Documentation

- (NSArray *) getMessagesForTask: (Task*)  task

Get all messages for a task. This function is equivalent to task.messages

- (NSArray *) getMessagesFrom: (NSDate*)  from
to: (NSDate*)  to 

Get messages for the specified time range. This function returns all messages triggered during the specified time range. Note that this includes messages for both current and past tasks.

Parameters
fromfrom date (inclusive) for the Message.triggerTime
toto date (exclusive) for the Message.triggerTime
Returns
an NSArray* of Message* objects
- (NSArray *) getPastTasksForCoachType: (CoachType)  coachType
from: (NSDate*)  from
to: (NSDate*)  to 

Get past tasks for a coach type. This function is equivalent to [coach getPastTasksFrom: to:].

Returns
An NSArray* of Task* objects.
- (NSArray *) getPastTasksFrom: (NSDate*)  from
to: (NSDate*)  to 

Get past tasks for the specified time range.

Parameters
fromfrom date, inclusive
toto date, exclusive
Returns
An NSArray* of Task* objects.
- (NSArray *) getTasksForCoachType: (CoachType)  coachType
from: (NSDate*)  from
to: (NSDate*)  to 

Get task for a coach type. Will also return task in the future

Returns
an NSArray* of Task* objects.
- (void) insertMessage: (Message*)  message

Insert a message. Should only be used by Coaches.

- (void) insertOrUpdateTask: (Task*)  task

Update a task, insert if it doesn't exist yet. Should only be used by Coaches

- (void) updateTask: (Task*)  task

Update a task, does nothing if the task doesn't exist. Should only be used by Coaches


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