|
| void | UpdateChannel (const std::wstring &new_name, const std::wstring &new_cover_url, const std::wstring &new_data, const std::vector< std::wstring > &new_operator_user_ids, const std::wstring &new_custom_type, std::function< void(SBDOpenChannel *, SBDError *)> completion_handler) |
| |
| void | UpdateChannel (const std::wstring &new_name, const std::wstring &new_cover_image_file_path, const std::wstring &new_cover_file_mime_type, const std::wstring &new_data, const std::vector< std::wstring > &new_operator_user_ids, const std::wstring &new_custom_type, std::function< void(SBDOpenChannel *, SBDError *)> completion_handler) |
| |
| void | DeleteChannel (std::function< void(SBDError *)> completion_handler) |
| |
| void | Enter (std::function< void(SBDError *)> completion_handler) |
| |
| void | Exit (std::function< void(SBDError *)> completion_handler) |
| |
| SBDUserListQuery * | CreateParticipantListQuery () |
| |
| SBDUserListQuery * | CreateMutedUserListQuery () |
| |
| SBDUserListQuery * | CreateBannedUserListQuery () |
| |
| void | RefreshChannel (std::function< void(SBDError *)> completion_handler) |
| |
| void | BanUser (const SBDUser &user, int seconds, std::function< void(SBDError *)> completion_handler) |
| |
| void | UnbanUser (const SBDUser &user, std::function< void(SBDError *)> completion_handler) |
| |
| void | MuteUser (const SBDUser &user, std::function< void(SBDError *)> completion_handler) |
| |
| void | UnmuteUser (const SBDUser &user, std::function< void(SBDError *)> completion_handler) |
| |
| bool | IsOperator (const SBDUser &user) |
| |
| 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 SBDOpenChannel class represents a public chat. This is a channel type which anyone can participate without a permission. It can handle thousands of users in one channel. This channel has participants instead of members of SBDGroupChannel and every participant is always online. A user can be included as an operator when a channel is created. The operator has a permission to mute, unmute, ban and unban participants. The muted user can see the messages in the channel, but can't say anything. The unbanned user can't enter the channel. If a user who is in the channel is banned, the user will be kicked from the channel.