|
List< Task > | getAllTasks (Coach.TYPE coachType, long startTime, long endTime) |
|
boolean | uploadTask (Task task) |
|
|
static TaskAPI | getInstance (SensePlatform sensePlatform) |
|
|
final String | TASKS_END_POINT_PREFIX = "/users/self/coaches/<coach_type>/tasks" |
|
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 = "TaskAPI" |
|
static String | KEY_TASK_TYPE = "task_type" |
|
static String | KEY_START_TIME = "start_time" |
|
static String | KEY_END_TIME = "end_time" |
|
static String | KEY_TARGET = "target" |
|
static String | KEY_VALUE = "value" |
|
static String | KEY_STATUS = "status" |
|
static String | KEY_COACH_TYPE = "coach_type" |
|
static TaskAPI | 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 |
|
List<Task> nl.sense_os.cortex.coaching.backend.TaskAPI.getAllTasks |
( |
Coach.TYPE |
coachType, |
|
|
long |
startTime, |
|
|
long |
endTime |
|
) |
| |
Get all the Tasks from a Coach
Get all tasks from a Coach created within a certain time range.
- Parameters
-
startTime | The epoch start date in ms |
endTime | The epoch end date in ms |
- Returns
- A list of all the tasks from a Coach
The documentation for this class was generated from the following file:
- android-sdk/src/nl/sense_os/cortex/coaching/backend/TaskAPI.java