Skip to content

Commit 4024d94

Browse files
committed
Add currency symbol
1 parent c0b89ff commit 4024d94

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/io/ipgeolocation/api/GeolocationCurrency.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
public class GeolocationCurrency {
66
private String name;
77
private String code;
8+
private String symbol;
89

910
GeolocationCurrency(Map json) {
1011
this.name = (String) json.get("name");
1112
this.code = (String) json.get("code");
13+
this.symbol = (String) json.get("symbol");
1214
}
1315

1416
public String getName() {
@@ -19,8 +21,12 @@ public String getCode() {
1921
return code;
2022
}
2123

24+
public String getSymbol() {
25+
return symbol;
26+
}
27+
2228
@Override
2329
public String toString() {
24-
return String.format("name: '%s' \ncode: '%s'", name, code);
30+
return String.format("name: '%s' \ncode: '%s' \nsymbol: '%s'", name, code, symbol);
2531
}
2632
}

0 commit comments

Comments
 (0)