Class DatabaseGetRegionsQuery

    • Constructor Detail

      • DatabaseGetRegionsQuery

        public DatabaseGetRegionsQuery​(VkApiClient client,
                                       UserActor actor,
                                       int countryId)
        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
        countryId - value of "country id" parameter. Minimum is 0.
      • DatabaseGetRegionsQuery

        public DatabaseGetRegionsQuery​(VkApiClient client,
                                       ServiceActor actor,
                                       int countryId)
        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
        countryId - value of "country id" parameter. Minimum is 0.
    • Method Detail

      • countryId

        protected DatabaseGetRegionsQuery countryId​(int value)
        Country ID, received in [vk.com/dev/database.getCountries|database.getCountries] method.
        Parameters:
        value - value of "country id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • q

        public DatabaseGetRegionsQuery q​(java.lang.String value)
        Search query.
        Parameters:
        value - value of "q" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • offset

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

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