File tree Expand file tree Collapse file tree 3 files changed +33
-28
lines changed
src/main/java/me/figo/models Expand file tree Collapse file tree 3 files changed +33
-28
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public class Account {
110110 * Account icon URL
111111 */
112112 @ Expose (serialize = false )
113- private String icon ;
113+ private Icon icon ;
114114
115115 /**
116116 * Account balance details
@@ -255,9 +255,9 @@ public AccountBalance getBalance() {
255255 }
256256
257257 /**
258- * @return the account icon URL
258+ * @return the account icon
259259 */
260- public String getIconUrl () {
260+ public Icon getIcon () {
261261 return icon ;
262262 }
263263
Original file line number Diff line number Diff line change @@ -78,31 +78,6 @@ public List<CatalogBank> getBanks() {
7878
7979 }
8080
81- public static class Icon {
82-
83- @ Expose
84- private Map <String ,String > resolutions ;
85-
86- @ Expose
87- private String url ;
88-
89- public Map <String , String > getResolutions () {
90- return resolutions ;
91- }
92-
93- public void setResolutions (Map <String , String > resolutions ) {
94- this .resolutions = resolutions ;
95- }
96-
97- public String getUrl () {
98- return url ;
99- }
100-
101- public void setUrl (String url ) {
102- this .url = url ;
103- }
104- }
105-
10681 /**
10782 * @return bank icon URL
10883 */
Original file line number Diff line number Diff line change 1+ package me .figo .models ;
2+
3+ import java .util .Map ;
4+
5+ import com .google .gson .annotations .Expose ;
6+
7+ public class Icon {
8+
9+ @ Expose
10+ private Map <String ,String > resolutions ;
11+
12+ @ Expose
13+ private String url ;
14+
15+ public Map <String , String > getResolutions () {
16+ return resolutions ;
17+ }
18+
19+ public void setResolutions (Map <String , String > resolutions ) {
20+ this .resolutions = resolutions ;
21+ }
22+
23+ public String getUrl () {
24+ return url ;
25+ }
26+
27+ public void setUrl (String url ) {
28+ this .url = url ;
29+ }
30+ }
You can’t perform that action at this time.
0 commit comments