Sendbird Chat SDK for Unreal
Public Member Functions | Public Attributes | List of all members
SBDUserListQuery Class Referencefinal

#include <SBDUserListQuery.h>

Public Member Functions

void SetMetaDataFilter (const std::wstring &key, const std::vector< std::wstring > &values)
 
void LoadNextPage (std::function< void(const std::vector< SBDUser > &users, SBDError *error)> completion_handler)
 

Public Attributes

SBDBaseChannelchannel
 
SBDUserListQueryType query_type
 
int64_t limit
 
bool has_next
 
bool is_loading
 

Detailed Description

The SBDUserListQuery class is a query class for getting the list of all users, participants, blocked users, muted users and banned users. Each type of the query is created by the class or the instance that is related to it.

Member Function Documentation

◆ LoadNextPage()

void SBDUserListQuery::LoadNextPage ( std::function< void(const std::vector< SBDUser > &users, SBDError *error)>  completion_handler)

Gets the list of users. If this method is repeatedly called, it will retrieve the following pages of the user list.

Parameters
completion_handlerThe handler interface to execute. The users is the array of SBDUser instances.

◆ SetMetaDataFilter()

void SBDUserListQuery::SetMetaDataFilter ( const std::wstring &  key,
const std::vector< std::wstring > &  values 
)

Sets meta data filter.

Parameters
keyThe key of the meta data to use for filter.
valuesThe values of the meta data to use for filter.

Member Data Documentation

◆ channel

SBDBaseChannel* SBDUserListQuery::channel

The channel instance related to query.

◆ has_next

bool SBDUserListQuery::has_next

Shows if there is a next page

◆ is_loading

bool SBDUserListQuery::is_loading

Shows if the query is loading.

◆ limit

int64_t SBDUserListQuery::limit

Sets the number of users per page.

◆ query_type

SBDUserListQueryType SBDUserListQuery::query_type

Query type. It is defined in SBDUserListQueryType.