Cortex Android
|
Classes | |
enum | STYLE |
enum | TYPE |
Public Member Functions | |
Message (JSONObject message) | |
String | getTitle () |
String | getText () |
String | getNotificationText () |
Coach.TYPE | getCoachType () |
Task.TYPE | getTaskType () |
double | getTaskStartTime () |
double | getGenerationTime () |
double | getTriggerTime () |
Message.TYPE | getMsgType () |
JSONObject | getValue () |
JSONObject | getTarget () |
Message.STYLE | getStyle () |
int | getStyleMsgId () |
int | getadviceId () |
JSONObject | toJSONObject () |
String | toString () |
Static Public Member Functions | |
static Message | getDummyMessage () |
nl.sense_os.cortex.coaching.Message.Message | ( | JSONObject | message | ) |
int nl.sense_os.cortex.coaching.Message.getadviceId | ( | ) |
Get advice id
The identifier for the advice used to fill the title, notification and text of the message
Coach.TYPE nl.sense_os.cortex.coaching.Message.getCoachType | ( | ) |
|
static |
double nl.sense_os.cortex.coaching.Message.getGenerationTime | ( | ) |
Get the generation time
The generation time of the message.
Message.TYPE nl.sense_os.cortex.coaching.Message.getMsgType | ( | ) |
String nl.sense_os.cortex.coaching.Message.getNotificationText | ( | ) |
Get the notification text
Notification text version of the message.
Message.STYLE nl.sense_os.cortex.coaching.Message.getStyle | ( | ) |
Get the Message style
The personality based style used for the message
int nl.sense_os.cortex.coaching.Message.getStyleMsgId | ( | ) |
Get the style message id
The identifier of the style message used to fill the title, notification and text of the message
JSONObject nl.sense_os.cortex.coaching.Message.getTarget | ( | ) |
double nl.sense_os.cortex.coaching.Message.getTaskStartTime | ( | ) |
Get the start time of the Task
The time at which the task generating this message has started.
Task.TYPE nl.sense_os.cortex.coaching.Message.getTaskType | ( | ) |
String nl.sense_os.cortex.coaching.Message.getText | ( | ) |
Get the Text
Full text version of the message.
String nl.sense_os.cortex.coaching.Message.getTitle | ( | ) |
Get the Title
Very short version of the message (+- 5 words).
double nl.sense_os.cortex.coaching.Message.getTriggerTime | ( | ) |
Get the trigger time
The time specified by the trigger that caused this message to be created.
JSONObject nl.sense_os.cortex.coaching.Message.getValue | ( | ) |
Get the Task value
Get the value of the task at the moment of triggering.
The returning JSONObject has two keys: "value" and "date".
value: can contain any of the possible JSON values, but is often a double.
date: the date of the value in epoch time seconds.
The JSONObject will be null if there is no current value.
@return The Task value
JSONObject nl.sense_os.cortex.coaching.Message.toJSONObject | ( | ) |
Get the JSONObject representation
Converts the Message into a JSONObject
String nl.sense_os.cortex.coaching.Message.toString | ( | ) |
The JSON String representation
Returns an indented JSON formated String representation of the Message