diff options
author | Vitaly Takmazov | 2016-11-28 15:25:11 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-11-28 15:25:11 +0300 |
commit | 595775d273a6af92268426e9f66e39082e389aa9 (patch) | |
tree | 6adf966f58431148840b35dc48b5f1b08e6b3fb4 /juick-www/src/main/java/com/juick/www/vk | |
parent | b4225fa075eef58924399f2c5f7a117ee171c2c6 (diff) |
fix vk users.get deserialization
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/vk')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/vk/GraphResponse.java | 19 | ||||
-rw-r--r-- | juick-www/src/main/java/com/juick/www/vk/UsersResponse.java | 21 |
2 files changed, 21 insertions, 19 deletions
diff --git a/juick-www/src/main/java/com/juick/www/vk/GraphResponse.java b/juick-www/src/main/java/com/juick/www/vk/GraphResponse.java deleted file mode 100644 index f1985a91..00000000 --- a/juick-www/src/main/java/com/juick/www/vk/GraphResponse.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.juick.www.vk; - -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Created by vitalyster on 28.11.2016. - */ -public class GraphResponse { - private User user; - - @JsonValue - public User getUser() { - return user; - } - - public void setUser(User user) { - this.user = user; - } -} diff --git a/juick-www/src/main/java/com/juick/www/vk/UsersResponse.java b/juick-www/src/main/java/com/juick/www/vk/UsersResponse.java new file mode 100644 index 00000000..d77aa481 --- /dev/null +++ b/juick-www/src/main/java/com/juick/www/vk/UsersResponse.java @@ -0,0 +1,21 @@ +package com.juick.www.vk; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.List; + +/** + * Created by vitalyster on 28.11.2016. + */ +public class UsersResponse { + private List<User> users; + + @JsonProperty("response") + public List<User> getUsers() { + return users; + } + + public void setUsers(List<User> users) { + this.users = users; + } +} |