S
S
ssi88882017-07-07 10:41:49
Java
ssi8888, 2017-07-07 10:41:49

Why does wall.get give empty java sdk vk objects?

I'm using Java SDK

try {
            GetResponse getQuery = vk.wall().get(actor)
                    .ownerId(-9165838) 
                    .offset(0)
                    .count(10)
                    .filter(WallGetFilter.ALL)
                    .execute();
            System.out.println(getQuery);
        } catch (ApiException e) {
            e.printStackTrace();
        } catch (ClientException e) {
            e.printStackTrace();
        }

but the result is always like this:
GetResponse{
count=3983, 
items=[
WallpostFull{copyHistory=null, canEdit=null, createdBy=null, canDelete=null, canPin=null, isPinned=1, comments=CommentsInfo{count=0, canPost=1}, likes=LikesInfo{count=0, userLikes=0, canLike=1, canPublish=1}, reposts=RepostsInfo{count=0, userReposted=0}}, 

WallpostFull{copyHistory=null, canEdit=null, createdBy=null, canDelete=null, canPin=null, isPinned=null, comments=CommentsInfo{count=0, canPost=1}, likes=LikesInfo{count=0, userLikes=0, canLike=1, canPublish=0}, reposts=RepostsInfo{count=0, userReposted=0}}, 

WallpostFull{copyHistory=null, canEdit=1, createdBy=854708, canDelete=1, canPin=null, isPinned=null, comments=CommentsInfo{count=0, canPost=1}, likes=LikesInfo{count=0, userLikes=0, canLike=1, canPublish=0}, reposts=RepostsInfo{count=0, userReposted=0}}, 

...
]
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question