Sendbird Chat SDK for Unreal
|
#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 | |
SBDBaseChannel * | channel |
SBDUserListQueryType | query_type |
int64_t | limit |
bool | has_next |
bool | is_loading |
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.
CreateAllUserListQuery()
]() of SBDMain
class.CreateUserListQuery()
]() of SBDMain
class.CreateBlockedUserListQuery()
]() of SBDMain
class.CreateParticipantListQuery()
]() of the SBDOpenChannel
instance.CreateMutedUserListQuery()
]() of the SBDOpenChannel
instance.CreateBannedUserListQuery()
]() of the SBDOpenChannel
instance. 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.
completion_handler | The handler interface to execute. The users is the array of SBDUser instances. |
void SBDUserListQuery::SetMetaDataFilter | ( | const std::wstring & | key, |
const std::vector< std::wstring > & | values | ||
) |
Sets meta data filter.
key | The key of the meta data to use for filter. |
values | The values of the meta data to use for filter. |
SBDBaseChannel* SBDUserListQuery::channel |
The channel instance related to query.
bool SBDUserListQuery::has_next |
Shows if there is a next page
bool SBDUserListQuery::is_loading |
Shows if the query is loading.
int64_t SBDUserListQuery::limit |
Sets the number of users per page.
SBDUserListQueryType SBDUserListQuery::query_type |
Query type. It is defined in SBDUserListQueryType
.