From fece3e02653aa6bc523520db5fe38faf870eda65 Mon Sep 17 00:00:00 2001 From: Colin McDonald Date: Sat, 16 Jul 2016 16:50:19 -0400 Subject: [PATCH] Add phoneNumber field to Zang result object --- src/main/java/net/frozenorb/apiv3/zang/ZangResult.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/frozenorb/apiv3/zang/ZangResult.java b/src/main/java/net/frozenorb/apiv3/zang/ZangResult.java index 983180d..238ee1c 100644 --- a/src/main/java/net/frozenorb/apiv3/zang/ZangResult.java +++ b/src/main/java/net/frozenorb/apiv3/zang/ZangResult.java @@ -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");