floo::BMXMessageConfig#
Message configuration
#include <bmx_message_config.h>
Inherits from BMXBaseObject
Public Types#
| Name | |
|---|---|
| enum class | BadgeCountType { Change, Set} Operation type of the currently read Badge number |
Public Functions#
| Name | |
|---|---|
| virtual | ~BMXMessageConfig() |
| void | setMentionAll(bool mentionAll) Set whether to @ all members |
| bool | getMentionAll() Get whether to @ all members |
| void | setMentionList(const std::vector< int64_t > & mentionList) Set the list of notified member ids |
| std::vector< int64_t > | getMentionList() Get @ member list |
| void | setMentionedMessage(const std::string & mentionedMessage) Set @ message |
| std::string | getMentionedMessage() Get @ message |
| void | setPushMessage(const std::string & pushMessage) Set push message |
| std::string | getPushMessage() Get push message |
| void | setSenderNickname(const std::string & senderNickname) Set nickname of sender |
| std::string | getSenderNickname() Get nickname of sender |
| void | setGroupMemberList(const std::vector< int64_t > & groupMemberList) Set the list of member ids that require read group messages |
| std::vector< int64_t > | getGroupMemberList() Get the list of group member ids that require read group messages |
| void | addGroupMember(int64_t id) Member of group member id list with read messages added |
| void | removeGroupMember(int64_t id) Empty the list of member ids that require read group messages |
| void | clearGroupMemberList() List of member ids with read group messages emptied |
| void | setIOSConfig(const std::string & iosConfig) Set IOS system configuration information |
| std::string | getIOSConfig() Get IOS system configuration information |
| void | setAndroidConfig(const std::string & androidConfig) Set Android system configuration information |
| std::string | getAndroidConfig() Get Android system configuration information |
| void | setPushShowBeginTime(int beginTime) Set start time for push display |
| int | getPushShowBeginTime() Get start time for push display |
| void | setPushShowEndTime(int endTime) Set end time for push display |
| int | getPushShowEndTime() Get end time for push display |
| void | setPushTitle(const std::string & pushTitle) Set push header |
| std::string | getPushTitle() Get push header |
| bool | isSilence() Get whether the current push is a silent message |
| BadgeCountType | getBadgeCountType() Get the badge count of the current push |
| int | getBadgeCount(int count) Get the badge count of the current push |
| void | setUsername(const std::string & username) Set username |
| std::string | getUsername() Get username |
| std::string | serialize() const Serialization operation |
| BMXMessageConfigPtr | createMessageConfig(bool mentionAll) |
Friends#
| Name | |
|---|---|
| std::string | encodeBMXMessageConfig(BMXMessageConfigPtr ) |
| BMXMessageConfigPtr | decodeBMXMessageConfig(const std::string & config) |
Public Types Documentation#
enum BadgeCountType#
| Enumerator | Value | Description |
|---|---|---|
| Change | The type of operation to read the Badge count is increment or decrement. Positive number is increment and negative number is decrement. | |
| Set | Set the Badge count to the current count |
Operation applied to the current badge count
Public Functions Documentation#
function ~BMXMessageConfig#
inline virtual ~BMXMessageConfig()
function setMentionAll#
void setMentionAll(
bool mentionAll
)
Set whether to @ all members
Parameters:
- mentionAll
function getMentionAll#
bool getMentionAll()
Get whether to @ all members
Return: bool
function setMentionList#
void setMentionList(
const std::vector< int64_t > & mentionList
)
Set the list of notified member ids
Parameters:
- mentionList
function getMentionList#
std::vector< int64_t > getMentionList()
Get @ member list
Return: std::vector<int64_t>
function setMentionedMessage#
void setMentionedMessage(
const std::string & mentionedMessage
)
Set @ message
Parameters:
- mentionedMessage
function getMentionedMessage#
std::string getMentionedMessage()
Get @ message
Return: std::string
function setPushMessage#
void setPushMessage(
const std::string & pushMessage
)
Set push message
Parameters:
- pushMessage
function getPushMessage#
std::string getPushMessage()
Get push message
Return: std::string
function setSenderNickname#
void setSenderNickname(
const std::string & senderNickname
)
Set nickname of sender
Parameters:
- senderNickname
function getSenderNickname#
std::string getSenderNickname()
Get nickname of sender
Return: std::string
function setGroupMemberList#
void setGroupMemberList(
const std::vector< int64_t > & groupMemberList
)
Set the list of member ids that require read group messages
Parameters:
- groupMemberList
function getGroupMemberList#
std::vector< int64_t > getGroupMemberList()
Get the list of group member ids that require read group messages
Return: std::vector<int64_t>
function addGroupMember#
void addGroupMember(
int64_t id
)
Member of group member id list with read messages added
function removeGroupMember#
void removeGroupMember(
int64_t id
)
Empty the list of member ids that require read group messages
Return: std::vector<int64_t>
function clearGroupMemberList#
void clearGroupMemberList()
List of member ids with read group messages emptied
function setIOSConfig#
void setIOSConfig(
const std::string & iosConfig
)
Set IOS system configuration information
Parameters:
- iosConfig
function getIOSConfig#
std::string getIOSConfig()
Get IOS system configuration information
Return: std::string
function setAndroidConfig#
void setAndroidConfig(
const std::string & androidConfig
)
Set Android system configuration information
Parameters:
- androidConfig
function getAndroidConfig#
std::string getAndroidConfig()
Get Android system configuration information
Return: std::string
function setPushShowBeginTime#
void setPushShowBeginTime(
int beginTime
)
Set start time for push display
Parameters:
- beginTime
function getPushShowBeginTime#
int getPushShowBeginTime()
Get start time for push display
Return: int
function setPushShowEndTime#
void setPushShowEndTime(
int endTime
)
Set end time for push display
Parameters:
- endTime
function getPushShowEndTime#
int getPushShowEndTime()
Get end time for push display
Return: int
function setPushTitle#
void setPushTitle(
const std::string & pushTitle
)
Set push header
Parameters:
- pushTitle
function getPushTitle#
std::string getPushTitle()
Get push header
Return: std::string
function isSilence#
bool isSilence()
Get whether the current push is a silent message
Return: bool
function getBadgeCountType#
BadgeCountType getBadgeCountType()
Get the badge count of the current push
Return: BadgeCountType
function getBadgeCount#
int getBadgeCount(
int count
)
Get the badge count of the current push
Return: int
function setUsername#
void setUsername(
const std::string & username
)
Set username
Parameters:
- username
function getUsername#
std::string getUsername()
Get username
Return: std::string
function serialize#
std::string serialize() const
Serialization operation
Return: std::string
function createMessageConfig#
static BMXMessageConfigPtr createMessageConfig(
bool mentionAll
)
Friends#
friend encodeBMXMessageConfig#
friend std::string encodeBMXMessageConfig(
BMXMessageConfigPtr
);
friend decodeBMXMessageConfig#
friend BMXMessageConfigPtr decodeBMXMessageConfig(
const std::string & config
);
Updated on 2022-01-26 at 17:20:40 +0800