Cortex Android
 All Classes Namespaces Functions Variables
nl.sense_os.cortex.coaching.AdviceMessage Class Reference

Public Member Functions

 AdviceMessage (JSONObject object)
 
JSONObject toJSONObject ()
 
String toString ()
 

Static Public Member Functions

static AdviceMessage getDummyMessage ()
 

Public Attributes

int _id = -1
 
Task.TYPE taskType
 
Message.STYLE msgStyle
 
Message.TYPE msgType
 
Coach.TYPE coachType
 
String title
 
String notificationText
 
String text
 
String link
 
int retrieveCount = 0
 

Constructor & Destructor Documentation

nl.sense_os.cortex.coaching.AdviceMessage.AdviceMessage ( JSONObject  object)

Construct AdviceMessage from JSON

Parameters
objectThe JSON representation of the AdviceMessage

Member Function Documentation

static AdviceMessage nl.sense_os.cortex.coaching.AdviceMessage.getDummyMessage ( )
static

Get a dummy AdviceMessage

Get an example Message with unrealistic values.

Returns
The dummy Message
JSONObject nl.sense_os.cortex.coaching.AdviceMessage.toJSONObject ( )

Get the JSONObject representation

Converts the AdviceMessage into a JSONObject

Returns
The JSONObject representation
String nl.sense_os.cortex.coaching.AdviceMessage.toString ( )

The JSON String representation

Returns an indented JSON formated String representation of the AdviceMessage

Returns
The JSON formated String representation

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