Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
API Manager
public class APIManager {
private static APIManager sInstance;
private final AppAPI mApi;
public static APIManager getInstance() {
if (sInstance == null) {
sInstance = new APIManager();
return sInstance;
private APIManager() {
mApi = ServiceFactory.makeService();
/*<-------------Login----------> */
public void loginUser(Login login, RemoteCallback<LoginResponse> listener) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.