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 status
Public Functions Documentation#
function BMXMessageAttachment#
inline BMXMessageAttachment()
Constructor
Example:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXMessageAttachment",function="BMXMessageAttachment" %}{% endlanying_code_snippet %}
function ~BMXMessageAttachment#
inline virtual ~BMXMessageAttachment()
Destructor
Example:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXMessageAttachment",function="~BMXMessageAttachment" %}{% endlanying_code_snippet %}
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:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXMessageAttachment",function="type" %}{% endlanying_code_snippet %}
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:
{% lanying_code_snippet repo="lanying-im-embedded",class="BMXMessageAttachment",function="clone" %}{% endlanying_code_snippet %}
Updated on 2022-01-26 at 17:20:40 +0800