|
static CoachAPI | getInstance (SensePlatform sensePlatform) |
|
|
final String | COACH_END_POINT_PREFIX = "/users/self/coaches" |
|
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 = "CoachAPI" |
|
static String | KEY_STATE = "state" |
|
static String | KEY_COACH_TYPE = "coach_type" |
|
static CoachAPI | 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.CoachAPI.getAllCoaches |
( |
| ) |
|
Get all the coaches
- Returns
- A list of all the coaches
String nl.sense_os.cortex.coaching.backend.CoachAPI.getCoachState |
( |
Coach.TYPE |
coachType | ) |
|
Get the state of a coach
- Returns
- The string representation of the coach state
double nl.sense_os.cortex.coaching.backend.CoachAPI.getStateDate |
( |
Coach.TYPE |
coachType | ) |
|
The date of the state stored online
- Parameters
-
coachType | The type of the coach to get the state date from |
- Returns
- The date of the state in epoch seconds. NaN if no date is available
boolean nl.sense_os.cortex.coaching.backend.CoachAPI.uploadCoach |
( |
Coach.TYPE |
coachType, |
|
|
String |
state |
|
) |
| |
Upload a coach state
- Parameters
-
coachType | The Coach Type |
state | The String representation of the state |
- Returns
The documentation for this class was generated from the following file:
- android-sdk/src/nl/sense_os/cortex/coaching/backend/CoachAPI.java