use of com.instructure.canvasapi2.models.ToDo in project instructure-android by instructure.
the class PollsManager method updatePollSession.
public static void updatePollSession(long pollId, long pollSessionId, long courseId, long sectionId, boolean hasPublicResults, StatusCallback<PollSessionResponse> callback, boolean forceNetwork) {
if (isTesting() || mTesting) {
// TODO:
} else {
final RestBuilder adapter = new RestBuilder(callback);
final RestParams params = new RestParams.Builder().withPerPageQueryParam(true).withShouldIgnoreToken(false).withForceReadFromNetwork(forceNetwork).build();
PollsSessionAPI.updatePollSession(pollId, pollSessionId, courseId, sectionId, hasPublicResults, adapter, params, callback);
}
}
use of com.instructure.canvasapi2.models.ToDo in project instructure-android by instructure.
the class PollsManager method getPollSubmission.
public static void getPollSubmission(long pollId, long pollSessionId, long pollSubmissionId, StatusCallback<PollSubmissionResponse> callback, boolean forceNetwork) {
if (isTesting() || mTesting) {
// TODO:
} else {
final RestBuilder adapter = new RestBuilder(callback);
final RestParams params = new RestParams.Builder().withPerPageQueryParam(true).withShouldIgnoreToken(false).withForceReadFromNetwork(forceNetwork).build();
PollSubmissionAPI.getPollSubmission(pollId, pollSessionId, pollSubmissionId, adapter, params, callback);
}
}
use of com.instructure.canvasapi2.models.ToDo in project instructure-android by instructure.
the class PollsManager method updatePoll.
public static void updatePoll(long pollId, String title, StatusCallback<PollResponse> callback, boolean forceNetwork) {
if (isTesting() || mTesting) {
// TODO:
} else {
final RestBuilder adapter = new RestBuilder(callback);
final RestParams params = new RestParams.Builder().withPerPageQueryParam(true).withShouldIgnoreToken(false).withForceReadFromNetwork(forceNetwork).build();
PollsAPI.updatePoll(pollId, title, adapter, params, callback);
}
}
use of com.instructure.canvasapi2.models.ToDo in project instructure-android by instructure.
the class PollsManager method getSinglePoll.
public static void getSinglePoll(long pollId, StatusCallback<PollResponse> callback, boolean forceNetwork) {
if (isTesting() || mTesting) {
// TODO:
} else {
final RestBuilder adapter = new RestBuilder(callback);
final RestParams params = new RestParams.Builder().withPerPageQueryParam(true).withShouldIgnoreToken(false).withForceReadFromNetwork(forceNetwork).build();
PollsAPI.getSinglePoll(pollId, adapter, params, callback);
}
}
use of com.instructure.canvasapi2.models.ToDo in project instructure-android by instructure.
the class PollsManager method openPollSession.
public static void openPollSession(long pollId, long sectionId, StatusCallback<ResponseBody> callback, boolean forceNetwork) {
if (isTesting() || mTesting) {
// TODO:
} else {
final RestBuilder adapter = new RestBuilder(callback);
final RestParams params = new RestParams.Builder().withPerPageQueryParam(true).withShouldIgnoreToken(false).withForceReadFromNetwork(forceNetwork).build();
PollsSessionAPI.openPollSession(pollId, sectionId, adapter, params, callback);
}
}
Aggregations