use of com.instructure.canvasapi2.models.Message in project instructure-android by instructure.
the class AssignmentManager_Test method editAssignment.
public static void editAssignment(AssignmentPostBody assignmentBody, StatusCallback<Assignment> 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<Assignment> response = retrofit2.Response.success(new Assignment(), httpResponse);
callback.onResponse(response, new LinkHeaders(), ApiType.CACHE);
}
use of com.instructure.canvasapi2.models.Message in project instructure-android by instructure.
the class CalendarEventManager_Test method getCalendarEvents.
public static void getCalendarEvents(StatusCallback<List<ScheduleItem>> callback) {
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<ScheduleItem> scheduleItems = new ArrayList<>();
retrofit2.Response<List<ScheduleItem>> response1 = retrofit2.Response.success(scheduleItems, response);
callback.onResponse(response1, new LinkHeaders(), ApiType.CACHE);
}
use of com.instructure.canvasapi2.models.Message in project instructure-android by instructure.
the class CourseManager_Test method getCourseStudents.
public static void getCourseStudents(long courseId, StatusCallback<List<User>> 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();
List<User> users = new ArrayList<>();
retrofit2.Response<List<User>> response1 = retrofit2.Response.success(users, response);
callback.onResponse(response1, new LinkHeaders(), ApiType.CACHE);
}
use of com.instructure.canvasapi2.models.Message in project instructure-android by instructure.
the class CourseManager_Test method getFavoriteCourses.
public static void getFavoriteCourses(StatusCallback<List<Course>> 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();
List<Course> courses = new ArrayList<>();
retrofit2.Response<List<Course>> response1 = retrofit2.Response.success(courses, response);
callback.onResponse(response1, new LinkHeaders(), ApiType.CACHE);
}
use of com.instructure.canvasapi2.models.Message in project instructure-android by instructure.
the class CourseManager_Test method getCourses.
public static void getCourses(StatusCallback<List<Course>> 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();
List<Course> courses = new ArrayList<>();
retrofit2.Response<List<Course>> response1 = retrofit2.Response.success(courses, response);
callback.onResponse(response1, new LinkHeaders(), ApiType.CACHE);
}
Aggregations