/** * Checks if the current logged in account has a token and is not a FREE account * * @return true or false */ public boolean doesHaveTokenAndValidAccount() { loadLogin(); return !(currentLogin.getToken() == null && !"Free".equals(currentLogin.getAccountType().toString())); }
/** * Checks if the current logged in account is a Premium account with a valid customer token * * @return true or false */ public boolean isPremiumAccountWithToken() { loadLogin(); return currentLogin.getAccountType() == AccountType.Premium && currentLogin.getToken() != null; }
/** * Returns the customer token of the current logged in user * * @return Customer token */ public String returnCurrentToken() { loadLogin(); return currentLogin.getToken(); }