|
final String | DOMAIN_STATE_END_POINT_PREFIX = "/users/self/states/domain" |
|
final String | RESPONSE_CODE = "http response code" |
|
final String | RESPONSE_CONTENT = "content" |
|
String | secret_code |
|
SensePlatform | mSensePlatform |
|
SharedPreferences | mAuthPrefs |
|
CoachingEngine | coachingEngine |
|
|
static final String | TAG = "DomainStateAPI" |
|
static DomainStateAPI | instance |
|
static String | BASE_URL_STAGING = "http://coaching-api.staging.sense-os.nl" |
|
static String | BASE_URL_TESTING = "http://coaching-api.dev.sense-os.nl" |
|
static final String | RESPONSE_OK = "200" |
|
static final String | RESPONSE_CREATED = "201" |
|
static final String | RESPONSE_NO_CONENT = "204" |
|
static final String | REQUEST_METHOD_PUT = "PUT" |
|
static final String | REQUEST_METHOD_DELETE = "DELETE" |
|
|
static final String | BASE_URL_PRODUCTION = "https://coaching-api.sense-os.nl" |
|
| CoachingAPI (SensePlatform sensePlatform) |
|
Map< String, String > | request (String endPoint, JSONObject content) throws IOException, RuntimeException |
|
BACKEND_RELEASE | getBackendRelease () |
|
Map< String, String > | request (String endPoint, JSONObject content, String requestMethod) throws IOException, RuntimeException |
|
JSONArray nl.sense_os.cortex.coaching.backend.DomainStateAPI.getDomainStateData |
( |
String |
state, |
|
|
long |
start_date, |
|
|
long |
end_date |
|
) |
| |
Get a doamain state
- Parameters
-
state | The name of the domain state to retrieve |
start_date | The start date of the period to retrieve the data for in unix time stamp ms |
end_date | The end date of the period to retrieve the data for in unix time stamp ms |
- Returns
- The domain state data as json array, containing json objects with fields "date":ms unix time stamp int, "value": valid json value
JSONArray nl.sense_os.cortex.coaching.backend.DomainStateAPI.listDomainStates |
( |
| ) |
|
List all the domain states
- Returns
- A list of all the domain states
The documentation for this class was generated from the following file:
- android-sdk/src/nl/sense_os/cortex/coaching/backend/DomainStateAPI.java