Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
2fa6cde0
Commit
2fa6cde0
authored
Feb 12, 2014
by
Matija Obreza
Browse files
Added missing getters
parent
2e578d99
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/server/service/impl/EasySMTAConnector.java
View file @
2fa6cde0
...
...
@@ -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
;
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment