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()
構造函數
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