Package com.vk.api.sdk.actions
Class Likes
- java.lang.Object
-
- com.vk.api.sdk.client.AbstractAction
-
- com.vk.api.sdk.actions.Likes
-
public class Likes extends AbstractAction
List of Likes methods
-
-
Constructor Summary
Constructors Constructor Description Likes(VkApiClient client)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LikesAddQueryadd(UserActor actor, Type type, int itemId)Adds the specified object to the 'Likes' list of the current user.LikesDeleteQuerydelete(UserActor actor, Type type, int itemId)Deletes the specified object from the 'Likes' list of the current user.LikesGetListQuerygetList(ServiceActor actor, Type type)Returns a list of IDs of users who added the specified object to their 'Likes' list.LikesGetListQuerygetList(UserActor actor, Type type)Returns a list of IDs of users who added the specified object to their 'Likes' list.LikesGetListQueryWithExtendedgetListExtended(ServiceActor actor, Type type)Returns a list of IDs of users who added the specified object to their 'Likes' list.LikesGetListQueryWithExtendedgetListExtended(UserActor actor, Type type)Returns a list of IDs of users who added the specified object to their 'Likes' list.LikesIsLikedQueryisLiked(UserActor actor, Type type, int itemId)Checks for the object in the 'Likes' list of the specified user.-
Methods inherited from class com.vk.api.sdk.client.AbstractAction
getClient
-
-
-
-
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 actortype- 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 installeditemId- 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 actortype- 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 installeditemId- 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 actortype- , 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 actortype- , 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 actortype- , 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 actortype- , 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 actortype- 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 discussionitemId- Object ID.- Returns:
- query
-
-