Commit 24fae61f authored by Lucas Braz Cunha's avatar Lucas Braz Cunha

Issue AGILE#203 [WP] Commit to change branch

Signed-off-by: Lucas Braz Cunha's avatarLucas B. Cunha <lbc16@inf.ufpr.br>
parent a3aafaf0
......@@ -54,7 +54,7 @@ public class NewDependentActivity extends AppCompatActivity implements NewDepen
private NewDependentPresenter presenter;
private Dependent dependent;
private ImageView imv_profile;
......@@ -424,6 +424,7 @@ public class NewDependentActivity extends AppCompatActivity implements NewDepen
HashMap<String, String> values = new HashMap<>();
values.put("name", et_name.getText().toString());
values.put("cpf", et_cpf.getText().toString());
values.put("rg", et_rg.getText().toString());
values.put("birth_date", DateValidator.stringToDate(et_birthdate.getText().toString(), false));
......
......@@ -26,37 +26,40 @@ public class DependentCreation {
public class DependentData{
@SerializedName("address_number")
private String mAddress_Number;
private String addressNumber;
@SerializedName("note")
private String mNote;
private String note;
@SerializedName("rg")
private String mRg;
private String rg;
@SerializedName("cpf")
private String cpf;
@SerializedName("email")
private String mEmail;
private String email;
@SerializedName("pcd")
private String mPcd;
private String pcd;
@SerializedName("phone2")
private String mPhone2;
private String phone2;
@SerializedName("phone1")
private String mPhone1;
private String phone1;
@SerializedName("name")
private String mName;
private String name;
@SerializedName("birth_date")
private String mBirth_Date;
private String birthDate;
@SerializedName("cep")
private String mCep;
private String cep;
@SerializedName("address_complement")
private String mAddressComplement;
private String addressComplement;
@SerializedName("active")
private boolean active;
......@@ -65,17 +68,18 @@ public class DependentCreation {
private Image image;
DependentData(Map<String, String> values) {
this.mAddress_Number = values.get("address_number");
this.mRg = values.get("rg");
this.mEmail = values.get("email");
this.mPcd = values.get("pcd");
this.mPhone2 = values.get("phone2");
this.mPhone1 = values.get("phone1");
this.mName = values.get("name");
this.mBirth_Date = values.get("birth_date");
this.mCep = values.get("cep");
this.mAddressComplement = values.get("address_complement");
this.addressNumber = values.get("address_number");
this.rg = values.get("rg");
this.email = values.get("email");
this.pcd = values.get("pcd");
this.phone2 = values.get("phone2");
this.phone1 = values.get("phone1");
this.name = values.get("name");
this.birthDate = values.get("birth_date");
this.cep = values.get("cep");
this.addressComplement = values.get("address_complement");
this.active = values.get("active").equals("true");
this.cpf = values.get("cpf");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment