Add phoneNumber field to Zang result object

This commit is contained in:
Colin McDonald 2016-07-16 16:50:19 -04:00
parent 07b503504a
commit fece3e0265

View File

@ -5,6 +5,7 @@ import lombok.Getter;
public final class ZangResult {
@Getter private String phoneNumber;
@Getter private String countryCode;
@Getter private int carrierId;
@Getter private String network;
@ -13,6 +14,7 @@ public final class ZangResult {
private ZangResult() {} // For Jackson
public ZangResult(JsonObject legacy) {
this.phoneNumber = legacy.getString("phone_number");
this.countryCode = legacy.getString("country_code");
this.carrierId = legacy.getInteger("carrier_id");
this.network = legacy.getString("network");