Package com.vk.api.sdk.actions
Class Newsfeed
- java.lang.Object
-
- com.vk.api.sdk.client.AbstractAction
-
- com.vk.api.sdk.actions.Newsfeed
-
public class Newsfeed extends AbstractAction
List of Newsfeed methods
-
-
Constructor Summary
Constructors Constructor Description Newsfeed(VkApiClient client)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewsfeedAddBanQueryaddBan(UserActor actor)Prevents news from specified users and communities from appearing in the current user's newsfeed.NewsfeedDeleteBanQuerydeleteBan(UserActor actor)Allows news from previously banned users and communities to be shown in the current user's newsfeed.NewsfeedDeleteListQuerydeleteList(UserActor actor, int listId)NewsfeedGetQueryget(UserActor actor)Returns data required to show newsfeed for the current user.NewsfeedGetBannedQuerygetBanned(UserActor actor)Returns a list of users and communities banned from the current user's newsfeed.NewsfeedGetBannedQueryWithExtendedgetBannedExtended(UserActor actor)Returns a list of users and communities banned from the current user's newsfeed.NewsfeedGetCommentsQuerygetComments(UserActor actor)Returns a list of comments in the current user's newsfeed.NewsfeedGetListsQuerygetLists(UserActor actor)Returns a list of newsfeeds followed by the current user.NewsfeedGetListsQueryWithExtendedgetListsExtended(UserActor actor)Returns a list of newsfeeds followed by the current user.NewsfeedGetMentionsQuerygetMentions(UserActor actor)Returns a list of posts on user walls in which the current user is mentioned.NewsfeedGetRecommendedQuerygetRecommended(UserActor actor), Returns a list of newsfeeds recommended to the current user.NewsfeedGetSuggestedSourcesQuerygetSuggestedSources(UserActor actor)Returns communities and users that current user is suggested to follow.NewsfeedIgnoreItemQueryignoreItem(UserActor actor, IgnoreItemType type)Hides an item from the newsfeed.NewsfeedSaveListQuerysaveList(UserActor actor, java.lang.String title)Creates and edits user newsfeed listsNewsfeedSearchQuerysearch(ServiceActor actor)Returns search results by statuses.NewsfeedSearchQuerysearch(UserActor actor)Returns search results by statuses.NewsfeedSearchQueryWithExtendedsearchExtended(ServiceActor actor)Returns search results by statuses.NewsfeedSearchQueryWithExtendedsearchExtended(UserActor actor)Returns search results by statuses.NewsfeedUnignoreItemQueryunignoreItem(UserActor actor, IgnoreItemType type, int ownerId, int itemId)Returns a hidden item to the newsfeed.NewsfeedUnsubscribeQueryunsubscribe(UserActor actor, UnsubscribeType type, int itemId)Unsubscribes the current user from specified newsfeeds.-
Methods inherited from class com.vk.api.sdk.client.AbstractAction
getClient
-
-
-
-
Constructor Detail
-
Newsfeed
public Newsfeed(VkApiClient client)
Constructor- Parameters:
client- vk api client
-
-
Method Detail
-
addBan
public NewsfeedAddBanQuery addBan(UserActor actor)
Prevents news from specified users and communities from appearing in the current user's newsfeed.- Parameters:
actor- vk actor- Returns:
- query
-
deleteBan
public NewsfeedDeleteBanQuery deleteBan(UserActor actor)
Allows news from previously banned users and communities to be shown in the current user's newsfeed.- Parameters:
actor- vk actor- Returns:
- query
-
deleteList
public NewsfeedDeleteListQuery deleteList(UserActor actor, int listId)
- Parameters:
actor- vk actorlistId-- Returns:
- query
-
get
public NewsfeedGetQuery get(UserActor actor)
Returns data required to show newsfeed for the current user.- Parameters:
actor- vk actor- Returns:
- query
-
getBanned
public NewsfeedGetBannedQuery getBanned(UserActor actor)
Returns a list of users and communities banned from the current user's newsfeed.- Parameters:
actor- vk actor- Returns:
- query
-
getBannedExtended
public NewsfeedGetBannedQueryWithExtended getBannedExtended(UserActor actor)
Returns a list of users and communities banned from the current user's newsfeed.- Parameters:
actor- vk actor- Returns:
- query
-
getComments
public NewsfeedGetCommentsQuery getComments(UserActor actor)
Returns a list of comments in the current user's newsfeed.- Parameters:
actor- vk actor- Returns:
- query
-
getListsExtended
public NewsfeedGetListsQueryWithExtended getListsExtended(UserActor actor)
Returns a list of newsfeeds followed by the current user.- Parameters:
actor- vk actor- Returns:
- query
-
getLists
public NewsfeedGetListsQuery getLists(UserActor actor)
Returns a list of newsfeeds followed by the current user.- Parameters:
actor- vk actor- Returns:
- query
-
getMentions
public NewsfeedGetMentionsQuery getMentions(UserActor actor)
Returns a list of posts on user walls in which the current user is mentioned.- Parameters:
actor- vk actor- Returns:
- query
-
getRecommended
public NewsfeedGetRecommendedQuery getRecommended(UserActor actor)
, Returns a list of newsfeeds recommended to the current user.- Parameters:
actor- vk actor- Returns:
- query
-
getSuggestedSources
public NewsfeedGetSuggestedSourcesQuery getSuggestedSources(UserActor actor)
Returns communities and users that current user is suggested to follow.- Parameters:
actor- vk actor- Returns:
- query
-
ignoreItem
public NewsfeedIgnoreItemQuery ignoreItem(UserActor actor, IgnoreItemType type)
Hides an item from the newsfeed.- Parameters:
actor- vk actortype- Item type. Possible values: *'wall' - post on the wall,, *'tag' - tag on a photo,, *'profilephoto' - profile photo,, *'video' - video,, *'audio' - audio.- Returns:
- query
-
saveList
public NewsfeedSaveListQuery saveList(UserActor actor, java.lang.String title)
Creates and edits user newsfeed lists- Parameters:
actor- vk actortitle- list name.- Returns:
- query
-
search
public NewsfeedSearchQuery search(UserActor actor)
Returns search results by statuses.- Parameters:
actor- vk actor- Returns:
- query
-
search
public NewsfeedSearchQuery search(ServiceActor actor)
Returns search results by statuses.- Parameters:
actor- vk actor- Returns:
- query
-
searchExtended
public NewsfeedSearchQueryWithExtended searchExtended(UserActor actor)
Returns search results by statuses.- Parameters:
actor- vk actor- Returns:
- query
-
searchExtended
public NewsfeedSearchQueryWithExtended searchExtended(ServiceActor actor)
Returns search results by statuses.- Parameters:
actor- vk actor- Returns:
- query
-
unignoreItem
public NewsfeedUnignoreItemQuery unignoreItem(UserActor actor, IgnoreItemType type, int ownerId, int itemId)
Returns a hidden item to the newsfeed.- Parameters:
actor- vk actortype- Item type. Possible values: *'wall' - post on the wall,, *'tag' - tag on a photo,, *'profilephoto' - profile photo,, *'video' - video,, *'audio' - audio.ownerId- Item owner's identifier (user or community), "Note that community id must be negative. 'owner_id=1' - user , 'owner_id=-1' - community "itemId- Item identifier- Returns:
- query
-
unsubscribe
public NewsfeedUnsubscribeQuery unsubscribe(UserActor actor, UnsubscribeType type, int itemId)
Unsubscribes the current user from specified newsfeeds.- Parameters:
actor- vk actortype- Type of object from which to unsubscribe: 'note' — note, 'photo' — photo, 'post' — post on user wall or community wall, 'topic' — topic, 'video' — videoitemId- Object ID.- Returns:
- query
-
-