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

Public Member Functions

 StyleMessage (JSONObject object)
 
JSONObject toJSONObject ()
 
String toString ()
 

Static Public Member Functions

static StyleMessage getDummyMessage ()
 

Public Attributes

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

Constructor & Destructor Documentation

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

Construct StyleMessage from JSON

Parameters
objectThe JSON representation of the StyleMessage

Member Function Documentation

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

Get a dummy StyleMessage

Get an example Message with unrealistic values.

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

Get the JSONObject representation

Converts the StyleMessage into a JSONObject

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

The JSON String representation

Returns an indented JSON formated String representation of the StyleMessage

Returns
The JSON formated String representation

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