Class Wall

    • Constructor Detail

      • Wall

        public Wall​(VkApiClient client)
        Constructor
        Parameters:
        client - vk api client
    • Method Detail

      • closeComments

        public WallCloseCommentsQuery closeComments​(UserActor actor,
                                                    int ownerId,
                                                    int postId)
        Parameters:
        actor - vk actor
        ownerId -
        postId -
        Returns:
        query
      • closeComments

        public WallCloseCommentsQuery closeComments​(GroupActor actor,
                                                    int ownerId,
                                                    int postId)
        Parameters:
        actor - vk actor
        ownerId -
        postId -
        Returns:
        query
      • createComment

        public WallCreateCommentQuery createComment​(UserActor actor,
                                                    int postId)
        Adds a comment to a post on a user wall or community wall.
        Parameters:
        actor - vk actor
        postId - Post ID.
        Returns:
        query
      • createComment

        public WallCreateCommentQuery createComment​(GroupActor actor,
                                                    int postId)
        Adds a comment to a post on a user wall or community wall.
        Parameters:
        actor - vk actor
        postId - Post ID.
        Returns:
        query
      • delete

        public WallDeleteQuery delete​(UserActor actor)
        Deletes a post from a user wall or community wall.
        Parameters:
        actor - vk actor
        Returns:
        query
      • deleteComment

        public WallDeleteCommentQuery deleteComment​(UserActor actor,
                                                    int commentId)
        Deletes a comment on a post on a user wall or community wall.
        Parameters:
        actor - vk actor
        commentId - Comment ID.
        Returns:
        query
      • edit

        public WallEditQuery edit​(UserActor actor,
                                  int postId)
        Edits a post on a user wall or community wall.
        Parameters:
        actor - vk actor
        postId -
        Returns:
        query
      • editAdsStealth

        public WallEditAdsStealthQuery editAdsStealth​(UserActor actor,
                                                      int postId)
        Allows to edit hidden post.
        Parameters:
        actor - vk actor
        postId - Post ID. Used for publishing of scheduled and suggested posts.
        Returns:
        query
      • editComment

        public WallEditCommentQuery editComment​(UserActor actor,
                                                int commentId)
        Edits a comment on a user wall or community wall.
        Parameters:
        actor - vk actor
        commentId - Comment ID.
        Returns:
        query
      • getExtended

        public WallGetQueryWithExtended getExtended​(UserActor actor)
        Returns a list of posts on a user wall or community wall.
        Parameters:
        actor - vk actor
        Returns:
        query
      • getExtended

        public WallGetQueryWithExtended getExtended​(ServiceActor actor)
        Returns a list of posts on a user wall or community wall.
        Parameters:
        actor - vk actor
        Returns:
        query
      • get

        public WallGetQuery get​(UserActor actor)
        Returns a list of posts on a user wall or community wall.
        Parameters:
        actor - vk actor
        Returns:
        query
      • get

        public WallGetQuery get​(ServiceActor actor)
        Returns a list of posts on a user wall or community wall.
        Parameters:
        actor - vk actor
        Returns:
        query
      • getByIdLegacy

        public WallGetByIdQueryWithLegacy getByIdLegacy​(UserActor actor,
                                                        java.lang.String... posts)
        Returns a list of posts from user or community walls by their IDs.
        Parameters:
        actor - vk actor
        posts - User or community IDs and post IDs, separated by underscores. Use a negative value to designate a community ID. Example: "93388_21539,93388_20904,2943_4276,-1_1"
        Returns:
        query
      • getByIdLegacy

        public WallGetByIdQueryWithLegacy getByIdLegacy​(UserActor actor,
                                                        java.util.List<java.lang.String> posts)
        Returns a list of posts from user or community walls by their IDs.
        Parameters:
        actor - vk actor
        posts - User or community IDs and post IDs, separated by underscores. Use a negative value to designate a community ID. Example: "93388_21539,93388_20904,2943_4276,-1_1"
        Returns:
        query
      • getByIdLegacy

        public WallGetByIdQueryWithLegacy getByIdLegacy​(ServiceActor actor,
                                                        java.lang.String... posts)
        Returns a list of posts from user or community walls by their IDs.
        Parameters:
        actor - vk actor
        posts - User or community IDs and post IDs, separated by underscores. Use a negative value to designate a community ID. Example: "93388_21539,93388_20904,2943_4276,-1_1"
        Returns:
        query
      • getByIdLegacy

        public WallGetByIdQueryWithLegacy getByIdLegacy​(ServiceActor actor,
                                                        java.util.List<java.lang.String> posts)
        Returns a list of posts from user or community walls by their IDs.
        Parameters:
        actor - vk actor
        posts - User or community IDs and post IDs, separated by underscores. Use a negative value to designate a community ID. Example: "93388_21539,93388_20904,2943_4276,-1_1"
        Returns:
        query
      • getByIdExtended

        public WallGetByIdQueryWithExtended getByIdExtended​(UserActor actor,
                                                            java.lang.String... posts)
        Returns a list of posts from user or community walls by their IDs.
        Parameters:
        actor - vk actor
        posts - User or community IDs and post IDs, separated by underscores. Use a negative value to designate a community ID. Example: "93388_21539,93388_20904,2943_4276,-1_1"
        Returns:
        query
      • getByIdExtended

        public WallGetByIdQueryWithExtended getByIdExtended​(UserActor actor,
                                                            java.util.List<java.lang.String> posts)
        Returns a list of posts from user or community walls by their IDs.
        Parameters:
        actor - vk actor
        posts - User or community IDs and post IDs, separated by underscores. Use a negative value to designate a community ID. Example: "93388_21539,93388_20904,2943_4276,-1_1"
        Returns:
        query
      • getByIdExtended

        public WallGetByIdQueryWithExtended getByIdExtended​(ServiceActor actor,
                                                            java.lang.String... posts)
        Returns a list of posts from user or community walls by their IDs.
        Parameters:
        actor - vk actor
        posts - User or community IDs and post IDs, separated by underscores. Use a negative value to designate a community ID. Example: "93388_21539,93388_20904,2943_4276,-1_1"
        Returns:
        query
      • getByIdExtended

        public WallGetByIdQueryWithExtended getByIdExtended​(ServiceActor actor,
                                                            java.util.List<java.lang.String> posts)
        Returns a list of posts from user or community walls by their IDs.
        Parameters:
        actor - vk actor
        posts - User or community IDs and post IDs, separated by underscores. Use a negative value to designate a community ID. Example: "93388_21539,93388_20904,2943_4276,-1_1"
        Returns:
        query
      • getCommentExtended

        public WallGetCommentQueryWithExtended getCommentExtended​(UserActor actor,
                                                                  int commentId)
        Returns a comment on a post on a user wall or community wall.
        Parameters:
        actor - vk actor
        commentId - Comment ID.
        Returns:
        query
      • getComment

        public WallGetCommentQuery getComment​(UserActor actor,
                                              int commentId)
        Returns a comment on a post on a user wall or community wall.
        Parameters:
        actor - vk actor
        commentId - Comment ID.
        Returns:
        query
      • getCommentsExtended

        public WallGetCommentsQueryWithExtended getCommentsExtended​(UserActor actor)
        Returns a list of comments on a post on a user wall or community wall.
        Parameters:
        actor - vk actor
        Returns:
        query
      • getCommentsExtended

        public WallGetCommentsQueryWithExtended getCommentsExtended​(ServiceActor actor)
        Returns a list of comments on a post on a user wall or community wall.
        Parameters:
        actor - vk actor
        Returns:
        query
      • getComments

        public WallGetCommentsQuery getComments​(UserActor actor)
        Returns a list of comments on a post on a user wall or community wall.
        Parameters:
        actor - vk actor
        Returns:
        query
      • getComments

        public WallGetCommentsQuery getComments​(ServiceActor actor)
        Returns a list of comments on a post on a user wall or community wall.
        Parameters:
        actor - vk actor
        Returns:
        query
      • getReposts

        public WallGetRepostsQuery getReposts​(UserActor actor)
        Returns information about reposts of a post on user wall or community wall.
        Parameters:
        actor - vk actor
        Returns:
        query
      • getReposts

        public WallGetRepostsQuery getReposts​(ServiceActor actor)
        Returns information about reposts of a post on user wall or community wall.
        Parameters:
        actor - vk actor
        Returns:
        query
      • openComments

        public WallOpenCommentsQuery openComments​(UserActor actor,
                                                  int ownerId,
                                                  int postId)
        Parameters:
        actor - vk actor
        ownerId -
        postId -
        Returns:
        query
      • openComments

        public WallOpenCommentsQuery openComments​(GroupActor actor,
                                                  int ownerId,
                                                  int postId)
        Parameters:
        actor - vk actor
        ownerId -
        postId -
        Returns:
        query
      • pin

        public WallPinQuery pin​(UserActor actor,
                                int postId)
        Pins the post on wall.
        Parameters:
        actor - vk actor
        postId - Post ID.
        Returns:
        query
      • post

        public WallPostQuery post​(UserActor actor)
        Adds a new post on a user wall or community wall. Can also be used to publish suggested or scheduled posts.
        Parameters:
        actor - vk actor
        Returns:
        query
      • postAdsStealth

        public WallPostAdsStealthQuery postAdsStealth​(UserActor actor,
                                                      int ownerId)
        Allows to create hidden post which will not be shown on the community's wall and can be used for creating an ad with type "Community post".
        Parameters:
        actor - vk actor
        ownerId - User ID or community ID. Use a negative value to designate a community ID.
        Returns:
        query
      • reportComment

        public WallReportCommentQuery reportComment​(UserActor actor,
                                                    int ownerId,
                                                    int commentId)
        Reports (submits a complaint about) a comment on a post on a user wall or community wall.
        Parameters:
        actor - vk actor
        ownerId - ID of the user or community that owns the wall.
        commentId - Comment ID.
        Returns:
        query
      • reportPost

        public WallReportPostQuery reportPost​(UserActor actor,
                                              int ownerId,
                                              int postId)
        Reports (submits a complaint about) a post on a user wall or community wall.
        Parameters:
        actor - vk actor
        ownerId - ID of the user or community that owns the wall.
        postId - Post ID.
        Returns:
        query
      • repost

        public WallRepostQuery repost​(UserActor actor,
                                      java.lang.String object)
        Reposts (copies) an object to a user wall or community wall.
        Parameters:
        actor - vk actor
        object - ID of the object to be reposted on the wall. Example: "wall66748_3675"
        Returns:
        query
      • restore

        public WallRestoreQuery restore​(UserActor actor)
        Restores a post deleted from a user wall or community wall.
        Parameters:
        actor - vk actor
        Returns:
        query
      • restoreComment

        public WallRestoreCommentQuery restoreComment​(UserActor actor,
                                                      int commentId)
        Restores a comment deleted from a user wall or community wall.
        Parameters:
        actor - vk actor
        commentId - Comment ID.
        Returns:
        query
      • search

        public WallSearchQuery search​(UserActor actor)
        Allows to search posts on user or community walls.
        Parameters:
        actor - vk actor
        Returns:
        query
      • search

        public WallSearchQuery search​(ServiceActor actor)
        Allows to search posts on user or community walls.
        Parameters:
        actor - vk actor
        Returns:
        query
      • searchExtended

        public WallSearchQueryWithExtended searchExtended​(UserActor actor)
        Allows to search posts on user or community walls.
        Parameters:
        actor - vk actor
        Returns:
        query
      • unpin

        public WallUnpinQuery unpin​(UserActor actor,
                                    int postId)
        Unpins the post on wall.
        Parameters:
        actor - vk actor
        postId - Post ID.
        Returns:
        query