From f7931604be50db929e90a9bbed194d2d7014fd98 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 26 Dec 2016 14:54:53 +0300 Subject: juick-www: add missing properties of vk Token object --- juick-www/src/main/java/com/juick/www/vk/Token.java | 10 ++++++++++ juick-www/src/main/java/com/juick/www/vk/User.java | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/juick-www/src/main/java/com/juick/www/vk/Token.java b/juick-www/src/main/java/com/juick/www/vk/Token.java index abeb7c96..88f98622 100644 --- a/juick-www/src/main/java/com/juick/www/vk/Token.java +++ b/juick-www/src/main/java/com/juick/www/vk/Token.java @@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; public class Token { private Long userId; private String accessToken; + private String expiresIn; @JsonProperty("user_id") public Long getUserId() { @@ -26,4 +27,13 @@ public class Token { public void setAccessToken(String accessToken) { this.accessToken = accessToken; } + + @JsonProperty("expires_in") + public String getExpiresIn() { + return expiresIn; + } + + public void setExpiresIn(String expiresIn) { + this.expiresIn = expiresIn; + } } diff --git a/juick-www/src/main/java/com/juick/www/vk/User.java b/juick-www/src/main/java/com/juick/www/vk/User.java index c197da2e..8c6ff0ac 100644 --- a/juick-www/src/main/java/com/juick/www/vk/User.java +++ b/juick-www/src/main/java/com/juick/www/vk/User.java @@ -6,6 +6,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; * Created by vitalyster on 28.11.2016. */ public class User { + private String uid; private String firstName; private String lastName; private String screenName; @@ -36,4 +37,12 @@ public class User { public void setScreenName(String screenName) { this.screenName = screenName; } + + public String getUid() { + return uid; + } + + public void setUid(String uid) { + this.uid = uid; + } } -- cgit v1.2.3