Class FriendsSearchQuery

    • Constructor Detail

      • FriendsSearchQuery

        public FriendsSearchQuery​(VkApiClient client,
                                  UserActor actor,
                                  int userId)
        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
        userId - value of "user id" parameter. Minimum is 1.
    • Method Detail

      • userId

        protected FriendsSearchQuery userId​(int value)
        User ID.
        Parameters:
        value - value of "user id" parameter. Minimum is 1.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • q

        public FriendsSearchQuery q​(java.lang.String value)
        Search query string (e.g., 'Vasya Babich').
        Parameters:
        value - value of "q" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • nameCase

        public FriendsSearchQuery nameCase​(SearchNameCase value)
        Case for declension of user name and surname: 'nom' — nominative (default), 'gen' — genitive , 'dat' — dative, 'acc' — accusative , 'ins' — instrumental , 'abl' — prepositional
        Parameters:
        value - value of "name case" parameter. By default Nom.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • offset

        public FriendsSearchQuery offset​(java.lang.Integer value)
        Offset needed to return a specific subset of friends.
        Parameters:
        value - value of "offset" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • count

        public FriendsSearchQuery count​(java.lang.Integer value)
        Number of friends to return.
        Parameters:
        value - value of "count" parameter. Maximum is 1000. Minimum is 0. By default 20.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • fields

        public FriendsSearchQuery fields​(Fields... value)
        fields Profile fields to return. Sample values: 'nickname', 'screen_name', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'has_mobile', 'rate', 'contacts', 'education', 'online',
        Parameters:
        value - value of "fields" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • fields

        public FriendsSearchQuery fields​(java.util.List<Fields> value)
        Profile fields to return. Sample values: 'nickname', 'screen_name', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'has_mobile', 'rate', 'contacts', 'education', 'online',
        Parameters:
        value - value of "fields" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.