floo::BMXMessageAttachment
Message attachment
#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} Attachment type |
enum class | DownloadStatus { Downloaing, Successed, Failed, NotStart, Canceled} Attachment download state |
Public Functions
Name | |
---|---|
BMXMessageAttachment() Constructor |
|
virtual | ~BMXMessageAttachment() Destructor |
virtual Type | type() const =0 Attachment type |
virtual std::shared_ptr< BMXMessageAttachment > | clone() const =0 Copy attachment |
Public Types Documentation
enum Type
Enumerator | Value | Description |
---|---|---|
Image | 1 | Image |
Voice | Voice | |
Video | Video clip | |
File | File | |
Location | Location | |
Command | Command message | |
Forward | Forward message |
Attachment type
enum DownloadStatus
Enumerator | Value | Description |
---|---|---|
Downloaing | Downloading | |
Successed | Download succeeded | |
Failed | Download failed | |
NotStart | Download has net started yet | |
Canceled | Download canceled |
Attachment download state
Public Functions Documentation
function BMXMessageAttachment
inline BMXMessageAttachment()
Constructor
Example:
function ~BMXMessageAttachment
inline virtual ~BMXMessageAttachment()
Destructor
Example:
function type
virtual Type type() const =0
Attachment type
Return: Type
Reimplemented by: floo::BMXFileAttachment::type, floo::BMXForwardAttachment::type, floo::BMXImageAttachment::type, floo::BMXLocationAttachment::type, floo::BMXVideoAttachment::type, floo::BMXVoiceAttachment::type
Example:
function clone
virtual std::shared_ptr< BMXMessageAttachment > clone() const =0
Copy attachment
Return: BMXMessageAttachmentPtr
Reimplemented by: floo::BMXFileAttachment::clone, floo::BMXForwardAttachment::clone, floo::BMXImageAttachment::clone, floo::BMXLocationAttachment::clone, floo::BMXVideoAttachment::clone, floo::BMXVoiceAttachment::clone
Example:
Updated on 2022-01-26 at 17:20:40 +0800