class LoginServiceImpl extends BaseRetrofitService<LoginRepository> implements org.unicef.rapidreg.service
        .LoginService {

    @Override
    public void loginOffline(String username, String password, String url, LoginCallback callback) {
        User user = userDao.getUser(username, url);
        if (user == null) {
            callback.onFailed(null);
            return;
        }
        if (EncryptHelper.isMatched(password, user.getPassword())) {
            callback.onSuccessful("", user);
            return;
        }
        callback.onError();
    }

    public  LoginServiceImpl(ConnectivityManager connectivityManager,
                            TelephonyManager telephonyManager,
                            UserDao userDao);

}