Class LikesAddQuery

    • Constructor Detail

      • LikesAddQuery

        public LikesAddQuery​(VkApiClient client,
                             UserActor actor,
                             Type type,
                             int itemId)
        Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
        Parameters:
        client - VK API client
        actor - actor with access token
        type - value of "type" parameter.
        itemId - value of "item id" parameter. Minimum is 0.
    • Method Detail

      • type

        protected LikesAddQuery type​(Type value)
        Object type: 'post' — post on user or community wall, 'comment' — comment on a wall post, 'photo' — photo, 'audio' — audio, 'video' — video, 'note' — note, 'photo_comment' — comment on the photo, 'video_comment' — comment on the video, 'topic_comment' — comment in the discussion, 'sitepage' — page of the site where the [vk.com/dev/Like|Like widget] is installed
        Parameters:
        value - value of "type" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • ownerId

        public LikesAddQuery ownerId​(java.lang.Integer value)
        ID of the user or community that owns the object.
        Parameters:
        value - value of "owner id" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • itemId

        protected LikesAddQuery itemId​(int value)
        Object ID.
        Parameters:
        value - value of "item id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • accessKey

        public LikesAddQuery accessKey​(java.lang.String value)
        Access key required for an object owned by a private entity.
        Parameters:
        value - value of "access key" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.