diff options
author | Vitaly Takmazov | 2016-12-26 14:54:53 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-26 15:11:38 +0300 |
commit | f7931604be50db929e90a9bbed194d2d7014fd98 (patch) | |
tree | 95be0c3b5c7099ae4ed3968feda35b15c4a4dd04 /juick-www/src | |
parent | 75fb7fd203746aa24669e084ac4de5a30c36ff32 (diff) |
juick-www: add missing properties of vk Token object
Diffstat (limited to 'juick-www/src')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/vk/Token.java | 10 | ||||
-rw-r--r-- | juick-www/src/main/java/com/juick/www/vk/User.java | 9 |
2 files changed, 19 insertions, 0 deletions
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; + } } |