蓝莺开发者
Web & Mini ProgramiOSAndroidC++Server API

floo::BMXMessageAttachment#

消息附件

#include <bmx_message_attachment.h>

Inherits from BMXBaseObject

Inherited by floo::BMXFileAttachment, floo::BMXForwardAttachment, floo::BMXLocationAttachment

Public Types#

Name
enum classType { Image = 1, Voice, Video, File, Location, Command, Forward}
附件类型
enum classDownloadStatus { Downloaing, Successed, Failed, NotStart, Canceled}
附件下载状态

Public Functions#

Name
BMXMessageAttachment()
构造函数
virtual~BMXMessageAttachment()
析构函数
virtual Typetype() const =0
附件类型
virtual std::shared_ptr< BMXMessageAttachment >clone() const =0
复制附件

Public Types Documentation#

enum Type#

EnumeratorValueDescription
Image1图片
Voice语音
Video视频片段
File文件
Location位置
Command命令消息
Forward转发消息

附件类型

enum DownloadStatus#

EnumeratorValueDescription
Downloaing下载中
Successed下载成功
Failed下载失败
NotStart下载尚未开始
Canceled下载被取消

附件下载状态

Public Functions Documentation#

function BMXMessageAttachment#

inline BMXMessageAttachment()

构造函数

Example:

{% lanying_code_snippet repo="lanying-im-embedded",class="BMXMessageAttachment",function="BMXMessageAttachment" %}{% endlanying_code_snippet %}

function ~BMXMessageAttachment#

inline virtual ~BMXMessageAttachment()

析构函数

Example:

{% lanying_code_snippet repo="lanying-im-embedded",class="BMXMessageAttachment",function="~BMXMessageAttachment" %}{% endlanying_code_snippet %}

function type#

virtual Type type() const =0

附件类型

Return: Type

Reimplemented by: floo::BMXFileAttachment::type, floo::BMXForwardAttachment::type, floo::BMXImageAttachment::type, floo::BMXLocationAttachment::type, floo::BMXVideoAttachment::type, floo::BMXVoiceAttachment::type

Example:

{% lanying_code_snippet repo="lanying-im-embedded",class="BMXMessageAttachment",function="type" %}{% endlanying_code_snippet %}

function clone#

virtual std::shared_ptr< BMXMessageAttachment > clone() const =0

复制附件

Return: BMXMessageAttachmentPtr

Reimplemented by: floo::BMXFileAttachment::clone, floo::BMXForwardAttachment::clone, floo::BMXImageAttachment::clone, floo::BMXLocationAttachment::clone, floo::BMXVideoAttachment::clone, floo::BMXVoiceAttachment::clone

Example:

{% lanying_code_snippet repo="lanying-im-embedded",class="BMXMessageAttachment",function="clone" %}{% endlanying_code_snippet %}

Updated on 2022-01-26 at 17:20:40 +0800

自动生成的 API 内容,仅在必要位置补充精简的 AI 解释。