Почему wall.get выдает пустые объекты java sdk vk?

296
09 июля 2017, 12:06

Использую 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();
}

Но результат всегда такой:

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}
        }, 
        ...
    ]
}
READ ALSO
Кейлоггер на Java для Windows [требует правки]

Кейлоггер на Java для Windows [требует правки]

Как можно реализовать кейлоггер на своем компьютере (желательно Java), чтобы первый отправлял данные на почту и работал в фоновом режиме? Реально...

317
Значение свойств в persistence.xml

Значение свойств в persistence.xml

Использую EntityManagerВозможно ли значения для свойств persistence

365
Persistent queue for file uploader

Persistent queue for file uploader

I'm working on creating file uploaderI would like to load files first temp folder and then convert them to needed format

321
Сервлеты Java + Tomcat

Сервлеты Java + Tomcat

У меня есть чат(GUI на Swing)Можно ли через сервлеты отправлять месседж пользователя на сервер, а после с сервера доставлять его всем пользователям?

487