Class FriendsGetOnlineQuery

    • Constructor Detail

      • FriendsGetOnlineQuery

        public FriendsGetOnlineQuery​(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

      • userId

        public FriendsGetOnlineQuery userId​(java.lang.Integer value)
        User ID.
        Parameters:
        value - value of "user id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • listId

        public FriendsGetOnlineQuery listId​(java.lang.Integer value)
        Friend list ID. If this parameter is not set, information about all online friends is returned.
        Parameters:
        value - value of "list id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • onlineMobile

        public FriendsGetOnlineQuery onlineMobile​(java.lang.Boolean value)
        '1' — to return an additional 'online_mobile' field, '0' — (default),
        Parameters:
        value - value of "online mobile" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • order

        public FriendsGetOnlineQuery order​(java.lang.String value)
        Sort order: 'random' — random order
        Parameters:
        value - value of "order" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • count

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

        public FriendsGetOnlineQuery 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.