Commit 2fa6cde0 authored by Matija Obreza's avatar Matija Obreza
Browse files

Added missing getters

parent 2e578d99
......@@ -82,7 +82,8 @@ public class EasySMTAConnector {
} else {
return new EasySMTAUserData(tree.get("pid").asText(), tree.get("name").asText(), tree.get("surname").asText(), tree.get("email").asText(),
tree.get("orgName").asText(), tree.get("country").asText());
tree.get("orgName").asText(), tree.get("country").asText(), tree.get("address").asText(), tree.get("shipAddress").asText(), tree
.get("shipCountry").asText());
}
}
} catch (final ClientProtocolException e) {
......@@ -105,25 +106,68 @@ public class EasySMTAConnector {
* @author matijaobreza
*/
public class EasySMTAUserData {
public String pid;
public String firstName;
public String lastName;
public String email;
public String organization;
public String countryIsoCode3;
public EasySMTAUserData(String pid, String firstName, String lastName, String email, String organization, String countryIsoCode3) {
private String pid;
private String firstName;
private String lastName;
private String email;
private String organization;
private String countryIsoCode3;
private String address;
private String shipAddress;
private String shipCountry;
public EasySMTAUserData(String pid, String firstName, String lastName, String email, String organization, String countryIsoCode3, String address,
String shipAddress, String shipCountry) {
this.pid = pid;
this.firstName = firstName;
this.lastName = lastName;
this.email = email;
this.organization = organization;
this.countryIsoCode3 = countryIsoCode3;
this.address = address;
this.shipAddress = shipAddress;
this.shipCountry = shipCountry;
}
@Override
public String toString() {
return "ITPGRFA.PID email=" + email + " first=" + firstName + " last=" + lastName + ", org=" + organization + ", country=" + countryIsoCode3;
}
public String getPid() {
return pid;
}
public String getFirstName() {
return firstName;
}
public String getLastName() {
return lastName;
}
public String getEmail() {
return email;
}
public String getOrganization() {
return organization;
}
public String getCountryIsoCode3() {
return countryIsoCode3;
}
public String getAddress() {
return address;
}
public String getShipAddress() {
return shipAddress;
}
public String getShipCountry() {
return shipCountry;
}
}
}
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