use of com.instructure.canvasapi2.models.PollResponse in project instructure-android by instructure.
the class PollsManager method createPoll.
public static void createPoll(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.createPoll(title, adapter, params, callback);
}
}
Aggregations