From 75fb7fd203746aa24669e084ac4de5a30c36ff32 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 26 Dec 2016 14:39:02 +0300 Subject: juick-www: add missing properties of facebook Graph object --- .../main/java/com/juick/www/facebook/Graph.java | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) (limited to 'juick-www') diff --git a/juick-www/src/main/java/com/juick/www/facebook/Graph.java b/juick-www/src/main/java/com/juick/www/facebook/Graph.java index b5827751..f4c6ab2a 100644 --- a/juick-www/src/main/java/com/juick/www/facebook/Graph.java +++ b/juick-www/src/main/java/com/juick/www/facebook/Graph.java @@ -1,5 +1,7 @@ package com.juick.www.facebook; +import com.fasterxml.jackson.annotation.JsonProperty; + /** * Created by vitalyster on 28.11.2016. */ @@ -8,6 +10,12 @@ public class Graph { private String name; private String link; private boolean verified; + private String firstName; + private String lastName; + private String gender; + private String locale; + private String timezone; + private String updatedTime; public String getId() { return id; @@ -40,4 +48,54 @@ public class Graph { public void setVerified(boolean verified) { this.verified = verified; } + + @JsonProperty("first_name") + public String getFirstName() { + return firstName; + } + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public String getGender() { + return gender; + } + + public void setGender(String gender) { + this.gender = gender; + } + + @JsonProperty("last_name") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public String getLocale() { + return locale; + } + + public void setLocale(String locale) { + this.locale = locale; + } + + public String getTimezone() { + return timezone; + } + + public void setTimezone(String timezone) { + this.timezone = timezone; + } + + @JsonProperty("updated_time") + public String getUpdatedTime() { + return updatedTime; + } + + public void setUpdatedTime(String updatedTime) { + this.updatedTime = updatedTime; + } } -- cgit v1.2.3