floo::BMXMessageAttachment

消息附件

#include <bmx_message_attachment.h>

Inherits from BMXBaseObject

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

Public Types

Name

enum class

Type { Image = 1, Voice, Video, File, Location, Command, Forward} 附件类型

enum class

DownloadStatus { Downloaing, Successed, Failed, NotStart, Canceled} 附件下载状态

Public Functions

Name

BMXMessageAttachment() 构造函数

virtual

~BMXMessageAttachment() 析构函数

virtual Type

type() const =0 附件类型

virtual std::shared_ptr< BMXMessageAttachment >

clone() const =0 复制附件

Public Types Documentation

enum Type

Enumerator
Value
Description

Image

1

图片

Voice

语音

Video

视频片段

File

文件

Location

位置

Command

命令消息

Forward

转发消息

附件类型

enum DownloadStatus

Enumerator
Value
Description

Downloaing

下载中

Successed

下载成功

Failed

下载失败

NotStart

下载尚未开始

Canceled

下载被取消

附件下载状态

Public Functions Documentation

function BMXMessageAttachment

inline BMXMessageAttachment()

构造函数

function ~BMXMessageAttachment

inline virtual ~BMXMessageAttachment()

析构函数

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

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


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

Last updated

Was this helpful?