Search in sources :

Example 6 with AccountNotification

use of com.instructure.canvasapi2.models.AccountNotification in project instructure-android by instructure.

the class AccountNotificationManager_Test method getAccountNotificationForStudent.

public static void getAccountNotificationForStudent(String parentId, String studentId, String accountNotificationId, StatusCallback<AccountNotification> 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();
    AccountNotification item = new AccountNotification();
    retrofit2.Response<AccountNotification> response1 = retrofit2.Response.success(item, response);
    callback.onResponse(response1, new LinkHeaders(), ApiType.CACHE);
}
Also used : Response(okhttp3.Response) LinkHeaders(com.instructure.canvasapi2.utils.LinkHeaders) AccountNotification(com.instructure.canvasapi2.models.AccountNotification)

Aggregations

RestBuilder (com.instructure.canvasapi2.builders.RestBuilder)4 RestParams (com.instructure.canvasapi2.builders.RestParams)4 AccountNotification (com.instructure.canvasapi2.models.AccountNotification)3 StatusCallback (com.instructure.canvasapi2.StatusCallback)1 Assignment (com.instructure.canvasapi2.models.Assignment)1 Course (com.instructure.canvasapi2.models.Course)1 DiscussionTopicHeader (com.instructure.canvasapi2.models.DiscussionTopicHeader)1 ScheduleItem (com.instructure.canvasapi2.models.ScheduleItem)1 Student (com.instructure.canvasapi2.models.Student)1 ExhaustiveListCallback (com.instructure.canvasapi2.utils.ExhaustiveListCallback)1 LinkHeaders (com.instructure.canvasapi2.utils.LinkHeaders)1 List (java.util.List)1 Response (okhttp3.Response)1