Class Users

    • Constructor Detail

      • Users

        public Users​(VkApiClient client)
        Constructor
        Parameters:
        client - vk api client
    • Method Detail

      • get

        public UsersGetQuery get​(UserActor actor)
        Returns detailed information on users.
        Parameters:
        actor - vk actor
        Returns:
        query
      • get

        public UsersGetQuery get​(GroupActor actor)
        Returns detailed information on users.
        Parameters:
        actor - vk actor
        Returns:
        query
      • get

        public UsersGetQuery get​(ServiceActor actor)
        Returns detailed information on users.
        Parameters:
        actor - vk actor
        Returns:
        query
      • getFollowers

        public UsersGetFollowersQuery getFollowers​(UserActor actor)
        Returns a list of IDs of followers of the user in question, sorted by date added, most recent first.
        Parameters:
        actor - vk actor
        Returns:
        query
      • getFollowers

        public UsersGetFollowersQuery getFollowers​(ServiceActor actor)
        Returns a list of IDs of followers of the user in question, sorted by date added, most recent first.
        Parameters:
        actor - vk actor
        Returns:
        query
      • getFollowersWithFields

        public UsersGetFollowersQueryWithFields getFollowersWithFields​(UserActor actor,
                                                                       Fields... fields)
        Returns a list of IDs of followers of the user in question, sorted by date added, most recent first.
        Parameters:
        actor - vk actor
        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'.
        Returns:
        query
      • getFollowersWithFields

        public UsersGetFollowersQueryWithFields getFollowersWithFields​(ServiceActor actor,
                                                                       Fields... fields)
        Returns a list of IDs of followers of the user in question, sorted by date added, most recent first.
        Parameters:
        actor - vk actor
        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'.
        Returns:
        query
      • getSubscriptions

        public UsersGetSubscriptionsQuery getSubscriptions​(UserActor actor)
        Returns a list of IDs of users and communities followed by the user.
        Parameters:
        actor - vk actor
        Returns:
        query
      • getSubscriptions

        public UsersGetSubscriptionsQuery getSubscriptions​(ServiceActor actor)
        Returns a list of IDs of users and communities followed by the user.
        Parameters:
        actor - vk actor
        Returns:
        query
      • report

        public UsersReportQuery report​(UserActor actor,
                                       int userId,
                                       ReportType type)
        Reports (submits a complain about) a user.
        Parameters:
        actor - vk actor
        userId - ID of the user about whom a complaint is being made.
        type - Type of complaint: 'porn' - pornography, 'spam' - spamming, 'insult' - abusive behavior, 'advertisement' - disruptive advertisements
        Returns:
        query
      • search

        public UsersSearchQuery search​(UserActor actor)
        Returns a list of users matching the search criteria.
        Parameters:
        actor - vk actor
        Returns:
        query