use of com.instructure.canvasapi2.models.DiscussionTopicHeader in project instructure-android by instructure.
the class AnnouncementManager_Test method getAnnouncements.
public static void getAnnouncements(List<String> contextCodes, String startDate, String endDate, StatusCallback<List<DiscussionTopicHeader>> callback) {
// 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<DiscussionTopicHeader> items = new ArrayList<>();
retrofit2.Response<List<DiscussionTopicHeader>> response1 = retrofit2.Response.success(items, response);
callback.onResponse(response1, new LinkHeaders(), ApiType.CACHE);
}
Aggregations