- (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
-
from | from date (inclusive) for the Message.triggerTime |
to | to 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
-
from | from date, inclusive |
to | to 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:
- ios-sdk/Cortex/coaching_engine/Historian.h
- ios-sdk/Cortex/coaching_engine/Historian.m