use of com.instructure.canvasapi2.models.ToDo in project instructure-android by instructure.
the class QuizManager_Test method editQuiz.
public static void editQuiz(QuizPostBody quizPostBody, StatusCallback<Quiz> callback) {
// TODO:
Response httpResponse = new Response.Builder().request(new Request.Builder().url("https://test.com").build()).code(200).message("todo").protocol(Protocol.HTTP_1_0).body(ResponseBody.create(MediaType.parse("application/json"), "todo".getBytes())).addHeader("content-type", "application/json").build();
retrofit2.Response<Quiz> response = retrofit2.Response.success(new Quiz(), httpResponse);
callback.onResponse(response, new LinkHeaders(), ApiType.CACHE);
}
use of com.instructure.canvasapi2.models.ToDo in project instructure-android by instructure.
the class RecipientManager_Test method getFirstPageRecipients.
public static void getFirstPageRecipients(String searchQuery, String context, StatusCallback<List<Recipient>> callback, RestBuilder adapter, RestParams params) {
// TODO:
Response response = new Response.Builder().code(200).message("todo").protocol(Protocol.HTTP_1_0).body(ResponseBody.create(MediaType.parse("application/json"), "todo".getBytes())).addHeader("content-type", "application/json").build();
List<Recipient> items = new ArrayList<>();
retrofit2.Response<List<Recipient>> response1 = retrofit2.Response.success(items, response);
callback.onResponse(response1, new LinkHeaders(), ApiType.CACHE);
}
use of com.instructure.canvasapi2.models.ToDo in project instructure-android by instructure.
the class SubmissionManager_Test method updateRubricAssessment.
public static void updateRubricAssessment(long courseId, long assignmentId, long studentId, Map<String, RubricCriterionAssessment> assessmentMap, StatusCallback<Submission> callback) {
// TODO:
Response response = new Response.Builder().request(new Request.Builder().url("https://test.com").build()).code(200).message("todo").protocol(Protocol.HTTP_1_0).body(ResponseBody.create(MediaType.parse("application/json"), "todo".getBytes())).addHeader("content-type", "application/json").build();
Submission submission = new Submission();
retrofit2.Response<Submission> response1 = retrofit2.Response.success(submission, response);
callback.onResponse(response1, new LinkHeaders(), ApiType.CACHE);
}
use of com.instructure.canvasapi2.models.ToDo in project instructure-android by instructure.
the class SubmissionManager_Test method postSubmissionComment.
public static void postSubmissionComment(long courseId, long assignmentId, long userId, String commentText, boolean isGroupMessage, StatusCallback<Submission> callback) {
// TODO:
Response response = new Response.Builder().request(new Request.Builder().url("https://test.com").build()).code(200).message("todo").protocol(Protocol.HTTP_1_0).body(ResponseBody.create(MediaType.parse("application/json"), "todo".getBytes())).addHeader("content-type", "application/json").build();
Submission submission = new Submission();
retrofit2.Response<Submission> response1 = retrofit2.Response.success(submission, response);
callback.onResponse(response1, new LinkHeaders(), ApiType.CACHE);
}
use of com.instructure.canvasapi2.models.ToDo in project instructure-android by instructure.
the class AlertThresholdManager method createAlertThreshold.
public static void createAlertThreshold(String airwolfDomain, String parentId, String studentId, String alertType, StatusCallback<AlertThreshold> callback) {
if (isTesting() || mTesting) {
// TODO:
} else {
RestBuilder adapter = new RestBuilder(callback);
RestParams params = new RestParams.Builder().withShouldIgnoreToken(false).withPerPageQueryParam(false).withDomain(airwolfDomain).withAPIVersion("").build();
AlertThresholdAPI.createAlertThreshold(airwolfDomain, adapter, params, parentId, studentId, alertType, callback);
}
}
Aggregations