Add phoneNumber field to Zang result object
This commit is contained in:
parent
07b503504a
commit
fece3e0265
@ -5,6 +5,7 @@ import lombok.Getter;
|
|||||||
|
|
||||||
public final class ZangResult {
|
public final class ZangResult {
|
||||||
|
|
||||||
|
@Getter private String phoneNumber;
|
||||||
@Getter private String countryCode;
|
@Getter private String countryCode;
|
||||||
@Getter private int carrierId;
|
@Getter private int carrierId;
|
||||||
@Getter private String network;
|
@Getter private String network;
|
||||||
@ -13,6 +14,7 @@ public final class ZangResult {
|
|||||||
private ZangResult() {} // For Jackson
|
private ZangResult() {} // For Jackson
|
||||||
|
|
||||||
public ZangResult(JsonObject legacy) {
|
public ZangResult(JsonObject legacy) {
|
||||||
|
this.phoneNumber = legacy.getString("phone_number");
|
||||||
this.countryCode = legacy.getString("country_code");
|
this.countryCode = legacy.getString("country_code");
|
||||||
this.carrierId = legacy.getInteger("carrier_id");
|
this.carrierId = legacy.getInteger("carrier_id");
|
||||||
this.network = legacy.getString("network");
|
this.network = legacy.getString("network");
|
||||||
|
Loading…
Reference in New Issue
Block a user