Skip to content

Commit 1555cd7

Browse files
denisdenis
denis
authored and
denis
committed
fix
1 parent 63c692f commit 1555cd7

File tree

1 file changed

+26
-67
lines changed
  • src/main/java/org/hoteia/tools/scribe/mapping/oauth/yahoo/json/pojo

1 file changed

+26
-67
lines changed

src/main/java/org/hoteia/tools/scribe/mapping/oauth/yahoo/json/pojo/EmailPojo.java

+26-67
Original file line numberDiff line numberDiff line change
@@ -5,57 +5,32 @@
55
import com.fasterxml.jackson.annotation.JsonAnySetter;
66
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
77

8-
98
/**
10-
*
11-
* <p>
12-
* <a href="UserPojo.java.html"><i>View Source</i></a>
13-
* </p>
14-
*
15-
* @author Denis Gosset <a href="http://www.hoteia.com"><i>Hoteia.com</i></a>
16-
*
17-
*/
18-
@JsonIgnoreProperties(ignoreUnknown=true)
9+
*
10+
* <p>
11+
* <a href="EmailPojo.java.html"><i>View Source</i></a>
12+
* </p>
13+
*
14+
* @author Denis Gosset <a href="http://www.hoteia.com"><i>Hoteia.com</i></a>
15+
*
16+
*/
17+
@JsonIgnoreProperties(ignoreUnknown = true)
1918
public class EmailPojo extends AbstractJsonPojo {
2019

21-
protected String city;
22-
23-
protected String country;
24-
25-
protected boolean current;
26-
27-
protected int id;
28-
29-
protected String postalCode;
30-
31-
protected String state;
32-
33-
protected String street;
34-
35-
protected String type;
36-
37-
public String getCity() {
38-
return city;
39-
}
20+
protected String handle;
4021

41-
public void setCity(String city) {
42-
this.city = city;
43-
}
22+
protected int id;
4423

45-
public String getCountry() {
46-
return country;
47-
}
24+
protected boolean primary;
4825

49-
public void setCountry(String country) {
50-
this.country = country;
51-
}
26+
protected String type;
5227

53-
public boolean isCurrent() {
54-
return current;
28+
public String getHandle() {
29+
return handle;
5530
}
5631

57-
public void setCurrent(boolean current) {
58-
this.current = current;
32+
public void setHandle(String handle) {
33+
this.handle = handle;
5934
}
6035

6136
public int getId() {
@@ -66,28 +41,12 @@ public void setId(int id) {
6641
this.id = id;
6742
}
6843

69-
public String getPostalCode() {
70-
return postalCode;
44+
public boolean isPrimary() {
45+
return primary;
7146
}
7247

73-
public void setPostalCode(String postalCode) {
74-
this.postalCode = postalCode;
75-
}
76-
77-
public String getState() {
78-
return state;
79-
}
80-
81-
public void setState(String state) {
82-
this.state = state;
83-
}
84-
85-
public String getStreet() {
86-
return street;
87-
}
88-
89-
public void setStreet(String street) {
90-
this.street = street;
48+
public void setPrimary(boolean primary) {
49+
this.primary = primary;
9150
}
9251

9352
public String getType() {
@@ -99,9 +58,9 @@ public void setType(String type) {
9958
}
10059

10160
@JsonAnySetter
102-
@Override
103-
public void handleUnknown(String key, Object value) {
104-
super.handleUnknown(key, value);
105-
}
106-
61+
@Override
62+
public void handleUnknown(String key, Object value) {
63+
super.handleUnknown(key, value);
64+
}
65+
10766
}

0 commit comments

Comments
 (0)