Class Likes

    • Constructor Detail

      • Likes

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

      • add

        public LikesAddQuery add​(UserActor actor,
                                 Type type,
                                 int itemId)
        Adds the specified object to the 'Likes' list of the current user.
        Parameters:
        actor - vk actor
        type - 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
        itemId - Object ID.
        Returns:
        query
      • delete

        public LikesDeleteQuery delete​(UserActor actor,
                                       Type type,
                                       int itemId)
        Deletes the specified object from the 'Likes' list of the current user.
        Parameters:
        actor - vk actor
        type - 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
        itemId - Object ID.
        Returns:
        query
      • getListExtended

        public LikesGetListQueryWithExtended getListExtended​(UserActor actor,
                                                             Type type)
        Returns a list of IDs of users who added the specified object to their 'Likes' list.
        Parameters:
        actor - vk actor
        type - , 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
        Returns:
        query
      • getListExtended

        public LikesGetListQueryWithExtended getListExtended​(ServiceActor actor,
                                                             Type type)
        Returns a list of IDs of users who added the specified object to their 'Likes' list.
        Parameters:
        actor - vk actor
        type - , 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
        Returns:
        query
      • getList

        public LikesGetListQuery getList​(UserActor actor,
                                         Type type)
        Returns a list of IDs of users who added the specified object to their 'Likes' list.
        Parameters:
        actor - vk actor
        type - , 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
        Returns:
        query
      • getList

        public LikesGetListQuery getList​(ServiceActor actor,
                                         Type type)
        Returns a list of IDs of users who added the specified object to their 'Likes' list.
        Parameters:
        actor - vk actor
        type - , 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
        Returns:
        query
      • isLiked

        public LikesIsLikedQuery isLiked​(UserActor actor,
                                         Type type,
                                         int itemId)
        Checks for the object in the 'Likes' list of the specified user.
        Parameters:
        actor - vk actor
        type - 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
        itemId - Object ID.
        Returns:
        query