Sendbird Chat SDK for Unreal
|
#include <SBDBaseChannel.h>
Public Member Functions | |
SBDUserMessage * | SendUserMessage (SBDUserMessageParams ¶ms, std::function< void(SBDUserMessage *, SBDError *)> completion_handler) |
SBDFileMessage * | SendFileMessage (const char *file_buf, const std::wstring &filename, int64_t size, const std::wstring &type, std::vector< SBDThumbnailSize > thumbnail_sizes, const std::wstring &data, const std::wstring &custom_type, std::function< void(SBDFileMessage *, SBDError *)> completion_handler) |
SBDFileMessage * | SendFileMessage (SBDFileMessageParams ¶ms, std::function< void(SBDFileMessage *, SBDError *)> completion_handler) |
void | DeleteMessage (SBDBaseMessage *message, std::function< void(SBDError *)> completion_handler) |
void | UpdateUserMessage (SBDUserMessage *message, const std::wstring &message_text, const std::wstring &data, const std::wstring &custom_type, std::function< void(SBDUserMessage *, SBDError *)> completion_handler) |
void | UpdateFileMessage (SBDFileMessage *message, const std::wstring &data, const std::wstring &custom_type, std::function< void(SBDFileMessage *, SBDError *)> completion_handler) |
SBDPreviousMessageListQuery * | CreatePreviousMessageListQuery () |
void | CreateMetaCounters (const std::map< std::wstring, int64_t > &meta_counters, std::function< void(const std::map< std::wstring, int64_t > &meta_counters, SBDError *)> completion_handler) |
void | GetMetaCounters (const std::vector< std::wstring > &keys, std::function< void(const std::map< std::wstring, int64_t > &meta_counters, SBDError *)> completion_handler) |
void | GetAllMetaCounters (std::function< void(const std::map< std::wstring, int64_t > &meta_counters, SBDError *)> completion_handler) |
void | UpdateMetaCounters (const std::map< std::wstring, int64_t > &meta_counters, std::function< void(const std::map< std::wstring, int64_t > &meta_counters, SBDError *)> completion_handler) |
void | IncreaseMetaCounters (const std::map< std::wstring, int64_t > &meta_counters, std::function< void(const std::map< std::wstring, int64_t > &meta_counters, SBDError *)> completion_handler) |
void | DecreaseMetaCounters (const std::map< std::wstring, int64_t > &meta_counters, std::function< void(const std::map< std::wstring, int64_t > &meta_counters, SBDError *)> completion_handler) |
void | DeleteMetaCounter (const std::wstring &key, std::function< void(SBDError *)> completion_handler) |
void | DeleteAllMetaCounters (std::function< void(SBDError *)> completion_handler) |
void | CreateMetaData (const std::map< std::wstring, std::wstring > &meta_data, std::function< void(const std::map< std::wstring, std::wstring > &meta_data, SBDError *)> completion_handler) |
void | GetMetaData (const std::vector< std::wstring > &keys, std::function< void(const std::map< std::wstring, std::wstring > &meta_data, SBDError *error)> completion_handler) |
void | GetAllMetaData (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 *)> completion_handler) |
void | DeleteMetaData (const std::wstring &key, std::function< void(SBDError *)> completion_handler) |
void | DeleteAllMetaData (std::function< void(SBDError *)> completion_handler) |
void | GetNextMessagesByTimestamp (int64_t timestamp, int64_t next_limit, bool reverse, SBDMessageTypeFilter message_type, const std::wstring &custom_type, std::function< void(const std::vector< SBDBaseMessage * > &, SBDError *)> completion_handler) |
void | GetPreviousMessagesByTimestamp (int64_t timestamp, int64_t prev_limit, bool reverse, SBDMessageTypeFilter message_type, const std::wstring &custom_type, std::function< void(const std::vector< SBDBaseMessage * > &, SBDError *)> completion_handler) |
void | GetMessagesByTimestamp (int64_t timestamp, int64_t prev_limit, int64_t next_limit, bool reverse, SBDMessageTypeFilter message_type, const std::wstring &custom_type, std::function< void(const std::vector< SBDBaseMessage * > &, SBDError *)> completion_handler) |
void | GetNextMessagesByMessageId (int64_t message_id, int64_t next_limit, bool reverse, SBDMessageTypeFilter message_type, const std::wstring &custom_type, std::function< void(const std::vector< SBDBaseMessage * > &, SBDError *)> completion_handler) |
void | GetPreviousMessagesByMessageId (int64_t message_id, int64_t prev_limit, bool reverse, SBDMessageTypeFilter message_type, const std::wstring &custom_type, std::function< void(const std::vector< SBDBaseMessage * > &, SBDError *)> completion_handler) |
void | GetMessagesByMessageId (int64_t message_id, int64_t prev_limit, int64_t next_limit, bool reverse, SBDMessageTypeFilter message_type, const std::wstring &custom_type, std::function< void(const std::vector< SBDBaseMessage * > &, SBDError *)> completion_handler) |
void | AddMessageMetaArrayValues (const std::wstring &channel_url, int64_t message_id, const std::map< std::wstring, std::vector< std::wstring > > &key_value, std::function< void(SBDBaseMessage *, SBDError *)> completion_handler) |
void | AddMessageMetaArrayValues (const std::wstring &channel_url, int64_t message_id, const std::vector< SBDMessageMetaArray > &metaarrays, std::function< void(SBDBaseMessage *, SBDError *)> completion_handler) |
void | RemoveMessageMetaArrayValues (const std::wstring &channel_url, int64_t message_id, const std::map< std::wstring, std::vector< std::wstring > > &key_value, std::function< void(SBDBaseMessage *, SBDError *)> completion_handler) |
void | RemoveMessageMetaArrayValues (const std::wstring &channel_url, int64_t message_id, const std::vector< SBDMessageMetaArray > &metaarrays, std::function< void(SBDBaseMessage *, SBDError *)> completion_handler) |
void | DeleteMessageMetaArrayKeys (const std::wstring &channel_url, int64_t message_id, const std::vector< std::wstring > &metaarray_keys, std::function< void(SBDBaseMessage *, SBDError *)> completion_handler) |
void | CreateMessageMetaArrayKeys (const std::wstring &channel_url, int64_t message_id, const std::vector< std::wstring > &metaarray_keys, std::function< void(SBDBaseMessage *, SBDError *)> completion_handler) |
SBDUserMessage * | CopyUserMessage (SBDUserMessage *message, SBDBaseChannel *target_channel, std::function< void(SBDUserMessage *, SBDError *)> completion_handler) |
SBDFileMessage * | CopyFileMessage (SBDFileMessage *message, SBDBaseChannel *target_channel, std::function< void(SBDFileMessage *, SBDError *)> completion_handler) |
void | AddOperators (const std::vector< std::wstring > &user_ids, std::function< void(SBDError *)> completion_handler) |
void | RemoveOperators (const std::vector< std::wstring > &user_ids, std::function< void(SBDError *)> completion_handler) |
void | RemoveAllOperators (std::function< void(SBDError *)> completion_handler) |
SBDOperatorListQuery * | CreateOperatorListQuery () |
void | Report (SBDReportCategory report_category, std::wstring report_description, std::function< void(SBDError *)> completion_handler) |
void | ReportUser (SBDUser &offending_user, SBDReportCategory report_category, std::wstring report_description, std::function< void(SBDError *)> completion_handler) |
void | ReportMessage (SBDBaseMessage *message, SBDReportCategory report_category, std::wstring report_description, std::function< void(SBDError *)> completion_handler) |
Public Attributes | |
std::wstring | channel_url |
std::wstring | name |
std::wstring | cover_url |
int64_t | created_at |
std::wstring | data |
std::wstring | custom_type |
bool | is_group_channel |
bool | is_open_channel |
Protected Member Functions | |
SBDBaseChannel (const std::string &dict) | |
The SBDBaseChannel
class represents the channel where users chat each other. The SBDOpenChannel
and the SBDGroupChannel
are derived from this class. This class provides the common methods for the SBDOpenChannel
and the SBDGroupChannel
.
The channel objects are maintained as a single instance in an application. If you create or get channels from the same channel URL, they must be the same instances.
void SBDBaseChannel::AddMessageMetaArrayValues | ( | const std::wstring & | channel_url, |
int64_t | message_id, | ||
const std::map< std::wstring, std::vector< std::wstring > > & | key_value, | ||
std::function< void(SBDBaseMessage *, SBDError *)> | completion_handler | ||
) |
AddMessageMetaArrayValues
void SBDBaseChannel::AddMessageMetaArrayValues | ( | const std::wstring & | channel_url, |
int64_t | message_id, | ||
const std::vector< SBDMessageMetaArray > & | metaarrays, | ||
std::function< void(SBDBaseMessage *, SBDError *)> | completion_handler | ||
) |
AddMessageMetaArrayValues
void SBDBaseChannel::AddOperators | ( | const std::vector< std::wstring > & | user_ids, |
std::function< void(SBDError *)> | completion_handler | ||
) |
Add operators to the channel.
user_ids | user ids to add as operators. |
completion_handler | handler to register |
SBDFileMessage * SBDBaseChannel::CopyFileMessage | ( | SBDFileMessage * | message, |
SBDBaseChannel * | target_channel, | ||
std::function< void(SBDFileMessage *, SBDError *)> | completion_handler | ||
) |
Copies a file message to the target channel.
message | File message object. |
target_channel | Target channel object. |
completion_handler | The handler interface to execute. The fileMessage is a user message which is returned from the Sendbird server. The message has a message ID. |
SBDUserMessage * SBDBaseChannel::CopyUserMessage | ( | SBDUserMessage * | message, |
SBDBaseChannel * | target_channel, | ||
std::function< void(SBDUserMessage *, SBDError *)> | completion_handler | ||
) |
Copies a user message to the target channel.
message | User message object. |
target_channel | Target channel object. |
completion_handler | The handler interface to execute. The userMessage is a user message which is returned from the Sendbird server. The message has a message ID. |
void SBDBaseChannel::CreateMessageMetaArrayKeys | ( | const std::wstring & | channel_url, |
int64_t | message_id, | ||
const std::vector< std::wstring > & | metaarray_keys, | ||
std::function< void(SBDBaseMessage *, SBDError *)> | completion_handler | ||
) |
CreateMessageMetaArrayKeys
void SBDBaseChannel::CreateMetaCounters | ( | const std::map< std::wstring, int64_t > & | meta_counters, |
std::function< void(const std::map< std::wstring, int64_t > &meta_counters, SBDError *)> | completion_handler | ||
) |
Creates the meta counters for the channel.
meta_counters | The meta counters to be set. |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::CreateMetaData | ( | const std::map< std::wstring, std::wstring > & | meta_data, |
std::function< void(const std::map< std::wstring, std::wstring > &meta_data, SBDError *)> | completion_handler | ||
) |
Creates the meta data for the channel.
meta_data | The meta data to be set. |
completion_handler | The handler interface to execute. |
SBDOperatorListQuery * SBDBaseChannel::CreateOperatorListQuery | ( | ) |
Creates a query instance to get the operator list from this channel.
SBDPreviousMessageListQuery * SBDBaseChannel::CreatePreviousMessageListQuery | ( | ) |
Creates SBDPreviousMessageListQuery
instance for getting the previous messages list of the channel.
void SBDBaseChannel::DecreaseMetaCounters | ( | const std::map< std::wstring, int64_t > & | meta_counters, |
std::function< void(const std::map< std::wstring, int64_t > &meta_counters, SBDError *)> | completion_handler | ||
) |
Decreases the meta counters for the channel.
meta_counters | The meta counters to be decreased. |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::DeleteAllMetaCounters | ( | std::function< void(SBDError *)> | completion_handler | ) |
Deletes all meta counters for the channel.
completion_handler | The handler interface to execute. |
void SBDBaseChannel::DeleteAllMetaData | ( | std::function< void(SBDError *)> | completion_handler | ) |
Deletes all meta data for the channel.
completion_handler | The handler interface to execute. |
void SBDBaseChannel::DeleteMessage | ( | SBDBaseMessage * | message, |
std::function< void(SBDError *)> | completion_handler | ||
) |
Deletes a message. The message's sender has to be the current user.
message | The message to be deleted. |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::DeleteMessageMetaArrayKeys | ( | const std::wstring & | channel_url, |
int64_t | message_id, | ||
const std::vector< std::wstring > & | metaarray_keys, | ||
std::function< void(SBDBaseMessage *, SBDError *)> | completion_handler | ||
) |
DeleteMessageMetaArrayKeys
void SBDBaseChannel::DeleteMetaCounter | ( | const std::wstring & | key, |
std::function< void(SBDError *)> | completion_handler | ||
) |
Deletes the meta counters with key for the channel.
key | The key to be deleted. |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::DeleteMetaData | ( | const std::wstring & | key, |
std::function< void(SBDError *)> | completion_handler | ||
) |
Deletes meta data with key for the channel.
key | The key to be deleted. |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::GetAllMetaCounters | ( | std::function< void(const std::map< std::wstring, int64_t > &meta_counters, SBDError *)> | completion_handler | ) |
Gets all meta counters for the channel.
completion_handler | The handler interface to execute. |
void SBDBaseChannel::GetAllMetaData | ( | std::function< void(const std::map< std::wstring, std::wstring > &meta_data, SBDError *error)> | completion_handler | ) |
Gets all meta data for the channel.
completion_handler | The handler interface to execute. |
void SBDBaseChannel::GetMessagesByMessageId | ( | int64_t | message_id, |
int64_t | prev_limit, | ||
int64_t | next_limit, | ||
bool | reverse, | ||
SBDMessageTypeFilter | message_type, | ||
const std::wstring & | custom_type, | ||
std::function< void(const std::vector< SBDBaseMessage * > &, SBDError *)> | completion_handler | ||
) |
Gets the previous and next message by the message ID with a limit and ordering.
message_id | The standard message ID to load messages. |
prev_limit | The previous limit for the number of messages. The returned messages could be more than this number if there are messages which have the same timestamp. |
next_limit | The next limit for the number of messages. The returned messages could be more than this number if there are messages which have the same timestamp. |
reverse | If yes, the latest message is the index 0. |
message_type | Message type to filter messages. |
custom_type | Custom type to filter messages. If filtering isn't required, set SBD_NULL_WSTRING . |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::GetMessagesByTimestamp | ( | int64_t | timestamp, |
int64_t | prev_limit, | ||
int64_t | next_limit, | ||
bool | reverse, | ||
SBDMessageTypeFilter | message_type, | ||
const std::wstring & | custom_type, | ||
std::function< void(const std::vector< SBDBaseMessage * > &, SBDError *)> | completion_handler | ||
) |
Gets the previous and next message by the timestamp with a limit and ordering.
timestamp | The standard timestamp to load messages. |
prev_limit | The previous limit for the number of messages. The returned messages could be more than this number if there are messages which have the same timestamp. |
next_limit | The next limit for the number of messages. The returned messages could be more than this number if there are messages which have the same timestamp. |
reverse | If yes, the latest message is the index 0. |
message_type | Message type to filter messages. |
custom_type | Custom type to filter messages. If filtering isn't required, set SBD_NULL_WSTRING . |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::GetMetaCounters | ( | const std::vector< std::wstring > & | keys, |
std::function< void(const std::map< std::wstring, int64_t > &meta_counters, SBDError *)> | completion_handler | ||
) |
Gets the meta counters with keys for the channel.
keys | The keys to get meta counters. |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::GetMetaData | ( | const std::vector< std::wstring > & | keys, |
std::function< void(const std::map< std::wstring, std::wstring > &meta_data, SBDError *error)> | completion_handler | ||
) |
Gets the meta data for the channel.
keys | The keys to get meta data. |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::GetNextMessagesByMessageId | ( | int64_t | message_id, |
int64_t | next_limit, | ||
bool | reverse, | ||
SBDMessageTypeFilter | message_type, | ||
const std::wstring & | custom_type, | ||
std::function< void(const std::vector< SBDBaseMessage * > &, SBDError *)> | completion_handler | ||
) |
Gets the next messages by the message ID with a limit and ordering.
message_id | The standard message ID to load messages. |
next_limit | The limit for the number of messages. The returned messages could be more than this number if there are messages which have the same timestamp. |
reverse | If yes, the latest message is the index 0. |
message_type | Message type to filter messages. |
custom_type | Custom type to filter messages. If filtering isn't required, set SBD_NULL_WSTRING . |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::GetNextMessagesByTimestamp | ( | int64_t | timestamp, |
int64_t | next_limit, | ||
bool | reverse, | ||
SBDMessageTypeFilter | message_type, | ||
const std::wstring & | custom_type, | ||
std::function< void(const std::vector< SBDBaseMessage * > &, SBDError *)> | completion_handler | ||
) |
Gets the next messages by the timestamp with a limit and ordering.
timestamp | The standard timestamp to load messages. |
next_limit | The limit for the number of messages. The returned messages could be more than this number if there are messages which have the same timestamp. |
reverse | If yes, the latest message is the index 0. |
message_type | Message type to filter messages. |
custom_type | Custom type to filter messages. If filtering isn't required, set SBD_NULL_WSTRING . |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::GetPreviousMessagesByMessageId | ( | int64_t | message_id, |
int64_t | prev_limit, | ||
bool | reverse, | ||
SBDMessageTypeFilter | message_type, | ||
const std::wstring & | custom_type, | ||
std::function< void(const std::vector< SBDBaseMessage * > &, SBDError *)> | completion_handler | ||
) |
Gets the previous messages by the message ID with a limit and ordering.
message_id | The standard message ID to load messages. |
prev_limit | The limit for the number of messages. The returned messages could be more than this number if there are messages which have the same timestamp. |
reverse | If yes, the latest message is the index 0. |
message_type | Message type to filter messages. |
custom_type | Custom type to filter messages. If filtering isn't required, set SBD_NULL_WSTRING . |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::GetPreviousMessagesByTimestamp | ( | int64_t | timestamp, |
int64_t | prev_limit, | ||
bool | reverse, | ||
SBDMessageTypeFilter | message_type, | ||
const std::wstring & | custom_type, | ||
std::function< void(const std::vector< SBDBaseMessage * > &, SBDError *)> | completion_handler | ||
) |
Gets the previous messages by the timestamp with a limit and ordering.
timestamp | The standard timestamp to load messages. |
prev_limit | The limit for the number of messages. The returned messages could be more than this number if there are messages which have the same timestamp. |
reverse | If yes, the latest message is the index 0. |
message_type | Message type to filter messages. |
custom_type | Custom type to filter messages. If filtering isn't required, set SBD_NULL_WSTRING . |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::IncreaseMetaCounters | ( | const std::map< std::wstring, int64_t > & | meta_counters, |
std::function< void(const std::map< std::wstring, int64_t > &meta_counters, SBDError *)> | completion_handler | ||
) |
Increases the meta counters for the channel.
meta_counters | The meta counters to be increased. |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::RemoveAllOperators | ( | std::function< void(SBDError *)> | completion_handler | ) |
Remove all operators from the channel.
completion_handler | handler to register |
void SBDBaseChannel::RemoveMessageMetaArrayValues | ( | const std::wstring & | channel_url, |
int64_t | message_id, | ||
const std::map< std::wstring, std::vector< std::wstring > > & | key_value, | ||
std::function< void(SBDBaseMessage *, SBDError *)> | completion_handler | ||
) |
RemoveMessageMetaArrayValues
void SBDBaseChannel::RemoveMessageMetaArrayValues | ( | const std::wstring & | channel_url, |
int64_t | message_id, | ||
const std::vector< SBDMessageMetaArray > & | metaarrays, | ||
std::function< void(SBDBaseMessage *, SBDError *)> | completion_handler | ||
) |
RemoveMessageMetaArrayValues
void SBDBaseChannel::RemoveOperators | ( | const std::vector< std::wstring > & | user_ids, |
std::function< void(SBDError *)> | completion_handler | ||
) |
Remove operators from the channel.
user_ids | user ids to remove from operators list. |
completion_handler | handler to register |
void SBDBaseChannel::Report | ( | SBDReportCategory | report_category, |
std::wstring | report_description, | ||
std::function< void(SBDError *)> | completion_handler | ||
) |
Reports this channel of inappropriate activities.
report_category | SBDReportCategory. |
report_description | Report description (optional). If this isn't needed, set SBD_NULL_WSTRING . |
handler | Callback handler. |
void SBDBaseChannel::ReportMessage | ( | SBDBaseMessage * | message, |
SBDReportCategory | report_category, | ||
std::wstring | report_description, | ||
std::function< void(SBDError *)> | completion_handler | ||
) |
Reports a malicious message.
message | SBDUserMessage or SBDFileMessage. |
report_category | SBDReportCategory. |
report_description | Report description (optional). If this isn't needed, set SBD_NULL_WSTRING . |
handler | Callback handler. |
void SBDBaseChannel::ReportUser | ( | SBDUser & | offending_user, |
SBDReportCategory | report_category, | ||
std::wstring | report_description, | ||
std::function< void(SBDError *)> | completion_handler | ||
) |
Reports a user of suspicious activities.
offending_user | Offending user. |
report_category | SBDReportCategory. |
report_description | Report description (optional). If this isn't needed, set SBD_NULL_WSTRING . |
handler | Callback handler. |
SBDFileMessage * SBDBaseChannel::SendFileMessage | ( | const char * | file_buf, |
const std::wstring & | filename, | ||
int64_t | size, | ||
const std::wstring & | type, | ||
std::vector< SBDThumbnailSize > | thumbnail_sizes, | ||
const std::wstring & | data, | ||
const std::wstring & | custom_type, | ||
std::function< void(SBDFileMessage *, SBDError *)> | completion_handler | ||
) |
Sends a file message with binary file data and custom message type.
file_buf | Binary file data. |
filename | File<span>name. |
size | File size. |
type | The type of file. |
thumbnail_sizes | Thumbnail sizes. This parameter is the std::vector of SBDThumbnailSize object and works for image file only. |
data | Custom data. |
custom_type | Custom message type. |
completion_handler | The handler interface to execute. |
SBDFileMessage * SBDBaseChannel::SendFileMessage | ( | SBDFileMessageParams & | params, |
std::function< void(SBDFileMessage *, SBDError *)> | completion_handler | ||
) |
Sends a file message with SBDFileMessageParams.
params | SBDFileMessageParams. |
completion_handler | The handler interface to execute. |
SBDUserMessage * SBDBaseChannel::SendUserMessage | ( | SBDUserMessageParams & | params, |
std::function< void(SBDUserMessage *, SBDError *)> | completion_handler | ||
) |
Sends a user message with params.
params | The message params |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::UpdateFileMessage | ( | SBDFileMessage * | message, |
const std::wstring & | data, | ||
const std::wstring & | custom_type, | ||
std::function< void(SBDFileMessage *, SBDError *)> | completion_handler | ||
) |
Updates a file message. The data and custom type can be updated.
message | The file message to be updated. |
data | New data. |
custom_type | New custom type. |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::UpdateMetaCounters | ( | const std::map< std::wstring, int64_t > & | meta_counters, |
std::function< void(const std::map< std::wstring, int64_t > &meta_counters, SBDError *)> | completion_handler | ||
) |
Updates the meta counters for the channel.
meta_counters | The meta counters to be updated. |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::UpdateMetaData | ( | const std::map< std::wstring, std::wstring > & | meta_data, |
std::function< void(const std::map< std::wstring, std::wstring > &meta_data, SBDError *)> | completion_handler | ||
) |
Updates the meta data for the channel.
meta_data | The meta data to be updated. |
completion_handler | The handler interface to execute. |
void SBDBaseChannel::UpdateUserMessage | ( | SBDUserMessage * | message, |
const std::wstring & | message_text, | ||
const std::wstring & | data, | ||
const std::wstring & | custom_type, | ||
std::function< void(SBDUserMessage *, SBDError *)> | completion_handler | ||
) |
Updates a user message. The message text, data, and custom type can be updated.
message | The user message to be updated. |
message_text | New message text. |
data | New data. |
custom_type | New custom type. |
completion_handler | The handler interface to execute. |
std::wstring SBDBaseChannel::channel_url |
The channel URL.
std::wstring SBDBaseChannel::cover_url |
The channel cover image URL.
int64_t SBDBaseChannel::created_at |
The timestamp when the channel is created.
std::wstring SBDBaseChannel::custom_type |
The custom type of the channel.
std::wstring SBDBaseChannel::data |
The custom date of the channel.
bool SBDBaseChannel::is_group_channel |
Checks the channel type. If true, this channel is a group channel.
bool SBDBaseChannel::is_open_channel |
Checks the channel type. If true, this channel is an open channel.
std::wstring SBDBaseChannel::name |
The name of channel.