Skip to content

Commit 1c3c92d

Browse files
author
Martin Domke
committed
Merge branch 'develop'
* develop: make use of icon object in account model
2 parents 143483f + 5c7e7fa commit 1c3c92d

File tree

3 files changed

+33
-28
lines changed

3 files changed

+33
-28
lines changed

src/main/java/me/figo/models/Account.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

src/main/java/me/figo/models/CatalogBank.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff 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
*/
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
}

0 commit comments

Comments
 (0)