use of com.instructure.canvasapi2.models.ParentResponse in project instructure-android by instructure.
the class UserManager method authenticateParentAirwolf.
public static void authenticateParentAirwolf(String airwolfDomain, String email, String password, StatusCallback<ParentResponse> callback) {
if (isTesting() || mTesting) {
RestBuilder adapter = new RestBuilder(callback);
RestParams params = new RestParams.Builder().withShouldIgnoreToken(false).withPerPageQueryParam(false).withDomain(airwolfDomain).withAPIVersion("").withForceReadFromNetwork(true).build();
UserManager_Test.authenticateParentAirwolf(airwolfDomain, adapter, params, email, password, callback);
} else {
RestBuilder adapter = new RestBuilder(callback);
RestParams params = new RestParams.Builder().withShouldIgnoreToken(false).withPerPageQueryParam(false).withDomain(airwolfDomain).withAPIVersion("").withForceReadFromNetwork(true).build();
UserAPI.authenticateParentAirwolf(adapter, params, email, password, callback);
}
}
use of com.instructure.canvasapi2.models.ParentResponse in project instructure-android by instructure.
the class UserManager method addParentAirwolf.
public static void addParentAirwolf(String airwolfDomain, Parent parent, StatusCallback<ParentResponse> callback) {
if (isTesting() || mTesting) {
RestBuilder adapter = new RestBuilder(callback);
RestParams params = new RestParams.Builder().withShouldIgnoreToken(false).withPerPageQueryParam(false).withDomain(airwolfDomain).withAPIVersion("").withForceReadFromNetwork(true).build();
UserManager_Test.addParentAirwolf(airwolfDomain, adapter, params, parent, callback);
} else {
RestBuilder adapter = new RestBuilder(callback);
RestParams params = new RestParams.Builder().withShouldIgnoreToken(false).withPerPageQueryParam(false).withDomain(airwolfDomain).withAPIVersion("").withForceReadFromNetwork(true).build();
UserAPI.addParentAirwolf(adapter, params, parent, callback);
}
}
use of com.instructure.canvasapi2.models.ParentResponse in project instructure-android by instructure.
the class UserManager method authenticateCanvasParentAirwolf.
public static void authenticateCanvasParentAirwolf(String airwolfDomain, String domain, StatusCallback<ParentResponse> callback) {
if (isTesting() || mTesting) {
RestBuilder adapter = new RestBuilder(callback);
RestParams params = new RestParams.Builder().withShouldIgnoreToken(false).withPerPageQueryParam(false).withDomain(airwolfDomain).withAPIVersion("").withForceReadFromNetwork(true).build();
UserManager_Test.authenticateCanvasParentAirwolf(domain, adapter, params, callback);
} else {
RestBuilder adapter = new RestBuilder(callback);
RestParams params = new RestParams.Builder().withShouldIgnoreToken(false).withPerPageQueryParam(false).withDomain(airwolfDomain).withAPIVersion("").withForceReadFromNetwork(true).build();
UserAPI.authenticateCavnasParentAirwolf(adapter, params, domain, callback);
}
}
Aggregations