#include <SBDBaseMessage.h>
|
|
| SBDBaseMessage (const std::string &dict) |
| |
The SBDBaseMessage class represents the base message which is generated by a user or an admin. The SBDUserMessage, the SBDFileMessage and the SBDAdminMessage are derived from this class.
◆ GetMetaArraysWithKeys()
| std::vector< SBDMessageMetaArray > SBDBaseMessage::GetMetaArraysWithKeys |
( |
const std::vector< std::wstring > & |
metaarraykeys | ) |
|
GetMetaArraysWithKeys
- Returns
- Returns an array of meta arrays with keys.
◆ IsGroupChannel()
| bool SBDBaseMessage::IsGroupChannel |
( |
| ) |
|
Checks the channel type is group channel or not.
- Returns
- Returns true, when this is group channel.
◆ IsOpenChannel()
| bool SBDBaseMessage::IsOpenChannel |
( |
| ) |
|
Checks the channel type is open channel or not.
- Returns
- Returns true, when this is open channel.
◆ channel_type
| std::wstring SBDBaseMessage::channel_type |
The type of channel. If this message belongs to a open channel, the value is "open" string. If this channel belongs to a group channel, then the value is "group".
◆ channel_url
| std::wstring SBDBaseMessage::channel_url |
Channel URL which has this message.
◆ created_at
| int64_t SBDBaseMessage::created_at |
Message created time in millisecond(UTC).
◆ mention_type
| SBDMentionType SBDBaseMessage::mention_type |
◆ mentioned_users
| std::vector<SBDUser> SBDBaseMessage::mentioned_users |
Can mention to specific users. If sends a message with this field, the message will be arrived to mentioned users. The default value is null.
◆ message_id
| uint64_t SBDBaseMessage::message_id |
◆ message_type
| SBDMessageType SBDBaseMessage::message_type |
◆ meta_arrays
Gets an array of meta arrays sorted by chronological order.
◆ updated_at
| int64_t SBDBaseMessage::updated_at |
Message updated time in millisecond(UTC).