use of com.instructure.canvasapi2.models.PollSessionResponse in project instructure-android by instructure.
the class PollsManager method getOpenSessions.
public static void getOpenSessions(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.getOpenSessions(adapter, params, callback);
}
}
use of com.instructure.canvasapi2.models.PollSessionResponse in project instructure-android by instructure.
the class PollsManager method getSinglePollSession.
public static void getSinglePollSession(long pollId, long pollSessionId, 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.getSinglePollSession(pollId, pollSessionId, adapter, params, callback);
}
}
use of com.instructure.canvasapi2.models.PollSessionResponse in project instructure-android by instructure.
the class PollsManager method createPollSession.
public static void createPollSession(long pollId, long courseId, long sectionId, 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.createPollSession(pollId, courseId, sectionId, adapter, params, callback);
}
}
use of com.instructure.canvasapi2.models.PollSessionResponse in project instructure-android by instructure.
the class PollsManager method getClosedSessions.
public static void getClosedSessions(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.getClosedSessions(adapter, params, callback);
}
}
Aggregations