public static AccountDetails google () { AccountDetails a = new AccountDetails(); a.type = Type.Google; return a; }
public void passwordLogin() { if (!checkFields()) { dismissProgressDialog(); return; } if(!isNetworkAvailable()) { Timber.v("Network Connection unavailable"); } AccountDetails details = AccountDetails.username(usernameEditText.getText().toString(), passwordEditText.getText().toString()); authenticateWithDetails(details); }
public static AccountDetails anonymous () { AccountDetails a = new AccountDetails(); a.type = Type.Anonymous; return a; }
public static AccountDetails username (String username, String password) { AccountDetails a = new AccountDetails(); a.type = Type.Username; a.username = username; a.password = password; return a; }
public static AccountDetails twitter () { AccountDetails a = new AccountDetails(); a.type = Type.Twitter; return a; }
public static AccountDetails signUp(String username, String password) { AccountDetails a = new AccountDetails(); a.type = Type.Register; a.username = username; a.password = password; return a; }
public static AccountDetails token(String token) { AccountDetails a = new AccountDetails(); a.type = Type.Custom; a.token = token; return a; }
public static AccountDetails facebook () { AccountDetails a = new AccountDetails(); a.type = Type.Facebook; return a; }
public void anonymousLogin () { AccountDetails details = new AccountDetails(); details.type = AccountDetails.Type.Anonymous; authenticateWithDetails(details); }
public void register() { if (!checkFields()) { dismissProgressDialog(); return; } AccountDetails details = new AccountDetails(); details.type = AccountDetails.Type.Register; details.username = usernameEditText.getText().toString(); details.password = passwordEditText.getText().toString(); authenticateWithDetails(details); }