cpp-mirai-client  v2.6.1
cpp client for mirai-api-http
Mirai::PokeMessage类 参考final

戳一戳消息 更多...

#include <PokeMessage.hpp>

类 Mirai::PokeMessage 继承关系图:
[图例]
Mirai::PokeMessage 的协作图:
[图例]

Public 成员函数

 PokeMessage ()=default
 
 PokeMessage (PokeType kind)
 
bool operator== (const PokeMessage &rhs)
 
bool operator!= (const PokeMessage &rhs)
 
PokeType GetPokeKind () const
 获取戳一戳类型 更多...
 
PokeMessageSetPokeKind (PokeType kind)
 设置戳一戳类型 更多...
 
- Public 成员函数 继承自 Mirai::IMessageImpl< PokeMessage >
std::unique_ptr< IMessageclone () const override
 
- Public 成员函数 继承自 Mirai::IMessage
virtual ~IMessage ()=default
 
virtual std::unique_ptr< IMessageclone () const =0
 
MessageTypes type () const
 Return the type of the class 更多...
 
bool allowSend () const
 检查消息是否可以用于发送 更多...
 
bool valid () const
 检查消息是否有效 更多...
 

Protected 成员函数

bool isValid_ () const final
 
- Protected 成员函数 继承自 Mirai::IMessageImpl< PokeMessage >
 IMessageImpl ()=default
 
MessageTypes GetType_ () const override
 
bool isSendSupported_ () const override
 
- Protected 成员函数 继承自 Mirai::IMessage
 IMessage ()=default
 
virtual MessageTypes GetType_ () const =0
 
virtual bool isSendSupported_ () const =0
 
virtual bool isValid_ () const =0
 

Protected 属性

PokeType kind_ = PokeType::ENUM_END
 

静态 Protected 属性

static constexpr MessageTypes TYPE_ = MessageTypes::POKE
 
static constexpr bool SUPPORT_SEND_ = true
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 Mirai::IMessageImpl< PokeMessage >
static constexpr MessageTypes GetType ()
 
static constexpr bool isSendSupported ()
 

详细描述

戳一戳消息

原PC版窗口抖动消息,与头像戳一戳消息不同

Member Variable Default Value
PokeMessage::kind_ PokeType::ENUM_END

在文件 PokeMessage.hpp38 行定义.

构造及析构函数说明

◆ PokeMessage() [1/2]

Mirai::PokeMessage::PokeMessage ( )
default

◆ PokeMessage() [2/2]

Mirai::PokeMessage::PokeMessage ( PokeType  kind)
inline

在文件 PokeMessage.hpp52 行定义.

成员函数说明

◆ isValid_()

bool Mirai::PokeMessage::isValid_ ( ) const
inlinefinalprotectedvirtual

实现了 Mirai::IMessage.

在文件 PokeMessage.hpp48 行定义.

◆ operator==()

bool Mirai::PokeMessage::operator== ( const PokeMessage rhs)
inline

在文件 PokeMessage.hpp54 行定义.

◆ operator!=()

bool Mirai::PokeMessage::operator!= ( const PokeMessage rhs)
inline

在文件 PokeMessage.hpp56 行定义.

◆ GetPokeKind()

PokeType Mirai::PokeMessage::GetPokeKind ( ) const
inline

获取戳一戳类型

在文件 PokeMessage.hpp59 行定义.

◆ SetPokeKind()

PokeMessage & Mirai::PokeMessage::SetPokeKind ( PokeType  kind)
inline

设置戳一戳类型

在文件 PokeMessage.hpp62 行定义.

类成员变量说明

◆ kind_

PokeType Mirai::PokeMessage::kind_ = PokeType::ENUM_END
protected

在文件 PokeMessage.hpp43 行定义.

◆ TYPE_

constexpr MessageTypes Mirai::PokeMessage::TYPE_ = MessageTypes::POKE
staticconstexprprotected

在文件 PokeMessage.hpp45 行定义.

◆ SUPPORT_SEND_

constexpr bool Mirai::PokeMessage::SUPPORT_SEND_ = true
staticconstexprprotected

在文件 PokeMessage.hpp46 行定义.


该类的文档由以下文件生成: