|
void | UpdateChannel (const std::wstring &name, bool is_distinct, const std::wstring &cover_url, const std::wstring &data, const std::wstring &custom_type, std::function< void(SBDGroupChannel *, SBDError *)> completion_handler) |
|
void | UpdateChannel (const std::wstring &name, bool is_distinct, const std::wstring &cover_image_file_path, const std::wstring &file_mime_type, const std::wstring &data, const std::wstring &custom_type, std::function< void(SBDGroupChannel *, SBDError *)> completion_handler) |
|
void | DeleteChannel (std::function< void(SBDError *)> completion_handler) |
|
void | RefreshChannel (std::function< void(SBDError *)> completion_handler) |
|
void | InviteUsers (const std::vector< SBDUser > &users, std::function< void(SBDError *)> completion_handler) |
|
void | HideChannel (bool hide_prev_messages, std::function< void(SBDError *)> completion_handler) |
|
void | HideChannel (bool hide_prev_messages, bool allow_auto_unhide, std::function< void(SBDError *)> completion_handler) |
|
void | UnhideChannel (std::function< void(SBDError *)> completion_handler) |
|
void | JoinChannel (std::function< void(SBDError *)> completion_handler) |
|
void | LeaveChannel (std::function< void(SBDError *)> completion_handler) |
|
void | MarkAsRead () |
|
int | GetReadReceipt (SBDBaseMessage *message) |
|
int64_t | GetLastSeenAt (const SBDUser &user) |
|
std::vector< SBDMember > | GetReadMembers (SBDBaseMessage *message) |
|
std::vector< SBDMember > | GetUnreadMembers (SBDBaseMessage *message) |
|
std::map< std::wstring, SBDReadStatus > | GetReadStatus () |
|
bool | HasMember (const std::wstring &user_id) |
|
SBDMember | GetMember (const std::wstring &user_id, bool *member_exist) |
|
void | AcceptInvitation (std::function< void(SBDError *)> completion_handler) |
|
void | DeclineInvitation (std::function< void(SBDError *)> completion_handler) |
|
void | ResetMyHistory (std::function< void(SBDError *)> completion_handler) |
|
const SBDBaseMessage * | GetLastMessage () |
|
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) |
|
The SBDGroupChannel
class represents a group channel which is a private chat. The user who wants to join the group channel has to be invited by another user who is already joined the channel. This class is derived from SBDBaseChannel
. If the SBDChannelHandler
is added, the user will automatically receive all messages from the group channels where the user belongs after connection. The SBDGroupChannel
provides the features of general messaging apps.
- Typing indicator.
- Read status for each message.
- Unread message count in the channel.
- Lastest message in the channel.
The SBDGroupChannel
has a special property, is_distinct
. The distinct property enabled group channel is always reuesd for same channel members. If a new member gets invited or the member left from the channel, then the distinct property disabled automatically. If you don't set distinct property on the channel, it always create new channel for the same members.
For more information, see Group Channel.