use of com.instructure.canvasapi2.models.PollChoiceResponse in project instructure-android by instructure.
the class PollsManager method updatePollChoice.
public static void updatePollChoice(long pollId, long pollChoiceId, String text, boolean isCorrect, int position, StatusCallback<PollChoiceResponse> 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();
PollsChoiceAPI.updatePollChoice(pollId, pollChoiceId, text, isCorrect, position, adapter, params, callback);
}
}
Aggregations