floo2
Classes | Public Types | Public Member Functions | List of all members
floo::BMXMessageAttachment Class Referenceabstract

消息附件 More...

#include <bmx_message_attachment.h>

Inheritance diagram for floo::BMXMessageAttachment:
floo::BMXBaseObject floo::BMXFileAttachment floo::BMXForwardAttachment floo::BMXLocationAttachment floo::BMXImageAttachment floo::BMXVideoAttachment floo::BMXVoiceAttachment

Classes

struct  Size
 图片/视频大小 More...
 

Public Types

enum  Type {
  Type::Image = 1, Type::Voice, Type::Video, Type::File,
  Type::Location, Type::Command, Type::Forward
}
 附件类型 More...
 
enum  DownloadStatus {
  DownloadStatus::Downloaing, DownloadStatus::Successed, DownloadStatus::Failed, DownloadStatus::NotStart,
  DownloadStatus::Canceled
}
 附件下载状态 More...
 

Public Member Functions

 BMXMessageAttachment ()
 构造函数
 
virtual ~BMXMessageAttachment ()
 析构函数
 
virtual Type type () const =0
 附件类型 More...
 
virtual std::shared_ptr< BMXMessageAttachmentclone () const =0
 复制附件 More...
 
- Public Member Functions inherited from floo::BMXBaseObject
template<typename T >
T * cast ()
 

Detailed Description

消息附件

Member Enumeration Documentation

◆ DownloadStatus

附件下载状态

Enumerator
Downloaing 

下载中

Successed 

下载成功

Failed 

下载失败

NotStart 

下载尚未开始

Canceled 

下载被取消

◆ Type

附件类型

Enumerator
Image 

图片

Voice 

语音

Video 

视频片段

File 

文件

Location 

位置

Command 

命令消息

Forward 

转发消息

Member Function Documentation

◆ clone()

virtual std::shared_ptr<BMXMessageAttachment> floo::BMXMessageAttachment::clone ( ) const
pure virtual

◆ type()

virtual Type floo::BMXMessageAttachment::type ( ) const
pure virtual

The documentation for this class was generated from the following file: