Exemplo n.º 1
0
  private void processForm() {
    if (mDelegate != null) {
      Account account = new Account();
      account.setCity(mFormData.get(CITY_KEY));
      account.setCountry(mFormData.get(COUNTRY_KEY));
      account.setEmail(mFormData.get(EMAIL_KEY));
      account.setGender(mFormData.get(GENDER_KEY));
      account.setName(mFormData.get(FULL_NAME_KEY));
      account.setPassword(mFormData.get(PASSWORD_KEY));
      account.setPostalCode(mFormData.get(ZIP_KEY));

      mDelegate.processForm(account);
    }
  }