public void saveToken(final TokenResponse tokenResponse, ResultListener resultListener) {

    Editor editor = sharedPreferences.edit();
    editor.putString(Constants.KEY_SHARE_TOKEN, tokenResponse.getTokenShare().getToken());
    editor.putString(Constants.KEY_SHARE_TOKEN_ISSUED, tokenResponse.getTokenShare().getIssued());
    editor.apply();

    resultListener.onSuccess();
  }
  public void saveLogin(final LoginResponse loginResponse, ResultListener resultListener) {

    Editor editor = sharedPreferences.edit();
    editor.putString(Constants.KEY_CAMPUS, loginResponse.getCampus());
    editor.putString(Constants.KEY_REGISTERNUMBER, loginResponse.getRegisterNumber());
    editor.putString(Constants.KEY_DATEOFBIRTH, loginResponse.getDateOfBirth());
    editor.putString(Constants.KEY_MOBILE, loginResponse.getMobileNumber());
    editor.apply();

    resultListener.onSuccess();
  }