Sendbird Chat SDK for Unreal
|
#include <SBDUser.h>
Public Member Functions | |
void | CreateMetaData (const std::map< std::wstring, std::wstring > &meta_data, std::function< void(const std::map< std::wstring, std::wstring > &meta_data, SBDError *error)> completion_handler) |
void | UpdateMetaData (const std::map< std::wstring, std::wstring > &meta_data, std::function< void(const std::map< std::wstring, std::wstring > &meta_data, SBDError *error)> completion_handler) |
void | DeleteMetaData (const std::wstring &key, std::function< void(SBDError *)> completion_handler) |
void | DeleteAllMetaData (std::function< void(SBDError *)> completion_handler) |
Public Attributes | |
std::wstring | user_id |
std::wstring | nickname |
std::wstring | profile_url |
SBDUserConnectionStatus | connection_status |
int64_t | last_seen_at |
std::map< std::wstring, std::wstring > | meta_data |
Protected Member Functions | |
SBDUser (const std::string &dict) | |
Protected Attributes | |
friend | FSBDUser |
The SBDUser
class represents a user. The user is identified by the user_id
, so the user_id
has to be unique. The user_id
, nickname
and profile_url
are valid in every SBDUser
instance, however the connection_status
and GetLastSeenAt()
is valid in SBDUser
instance from SBDUserListQuery
.
void SBDUser::CreateMetaData | ( | const std::map< std::wstring, std::wstring > & | meta_data, |
std::function< void(const std::map< std::wstring, std::wstring > &meta_data, SBDError *error)> | completion_handler | ||
) |
Creates the meta data for the current user.
meta_data | The meta data to be set. |
completion_handler | The handler interface to execute. meta_data is the meta data which are set on Sendbird server. |
void SBDUser::DeleteAllMetaData | ( | std::function< void(SBDError *)> | completion_handler | ) |
Deletes all meta data for the current user.
completion_handler | The handler interface to execute. |
void SBDUser::DeleteMetaData | ( | const std::wstring & | key, |
std::function< void(SBDError *)> | completion_handler | ||
) |
Deletes meta data with key for the current user.
key | The key to be deleted. |
completion_handler | The handler interface to execute. |
void SBDUser::UpdateMetaData | ( | const std::map< std::wstring, std::wstring > & | meta_data, |
std::function< void(const std::map< std::wstring, std::wstring > &meta_data, SBDError *error)> | completion_handler | ||
) |
Updates the meta data for the current user.
meta_data | The meta data to be updated. |
completion_handler | The handler interface to execute. meta_data is the meta data which are updated on Sendbird server. |
SBDUserConnectionStatus SBDUser::connection_status |
User connection status. This is defined in SBDUserConnectionStatus
.
int64_t SBDUser::last_seen_at |
The lastest time when the user became offline.
std::map<std::wstring, std::wstring> SBDUser::meta_data |
Meta data.
std::wstring SBDUser::nickname |
User nickname.
std::wstring SBDUser::profile_url |
Profile image url.
std::wstring SBDUser::user_id |
User ID. This has to be unique.