Class NotificationsGetQuery

    • Constructor Detail

      • NotificationsGetQuery

        public NotificationsGetQuery​(VkApiClient client,
                                     UserActor actor)
        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
    • Method Detail

      • count

        public NotificationsGetQuery count​(java.lang.Integer value)
        Number of notifications to return.
        Parameters:
        value - value of "count" parameter. Maximum is 100. Minimum is 1. By default 30.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • startFrom

        public NotificationsGetQuery startFrom​(java.lang.String value)
        Set start from
        Parameters:
        value - value of "start from" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • startTime

        public NotificationsGetQuery startTime​(java.lang.Integer value)
        Earliest timestamp (in Unix time) of a notification to return. By default, 24 hours ago.
        Parameters:
        value - value of "start time" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • endTime

        public NotificationsGetQuery endTime​(java.lang.Integer value)
        Latest timestamp (in Unix time) of a notification to return. By default, the current time.
        Parameters:
        value - value of "end time" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • filters

        public NotificationsGetQuery filters​(java.lang.String... value)
        filters Type of notifications to return: 'wall' — wall posts, 'mentions' — mentions in wall posts, comments, or topics, 'comments' — comments to wall posts, photos, and videos, 'likes' — likes, 'reposted' — wall posts that are copied from the current user's wall, 'followers' — new followers, 'friends' — accepted friend requests
        Parameters:
        value - value of "filters" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • filters

        public NotificationsGetQuery filters​(java.util.List<java.lang.String> value)
        Type of notifications to return: 'wall' — wall posts, 'mentions' — mentions in wall posts, comments, or topics, 'comments' — comments to wall posts, photos, and videos, 'likes' — likes, 'reposted' — wall posts that are copied from the current user's wall, 'followers' — new followers, 'friends' — accepted friend requests
        Parameters:
        value - value of "filters" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.