藍鶯開發者
Web & Mini ProgramiOSAndroidC++Server API

floo::BMXMessageAttachment#

訊息附件

#include <bmx_message_attachment.h>

Inherits from BMXBaseObject

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

Public Types#

Name
enum classType { Image = 1, Voice, Video, File, Location, Command, Forward}
附件類型
enum classDownloadStatus { Downloaing, Successed, Failed, NotStart, Canceled}
附件下載狀態

Public Functions#

Name
BMXMessageAttachment()
構造函數
virtual~BMXMessageAttachment()
析構函數
virtual Typetype() const =0
附件類型
virtual std::shared_ptr< BMXMessageAttachment >clone() const =0
複製附件

Public Types Documentation#

enum Type#

EnumeratorValueDescription
Image1圖片
Voice語音
Video視訊片段
File檔案
Location位置
Command命令訊息
Forward轉發訊息

附件類型

enum DownloadStatus#

EnumeratorValueDescription
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

自動產生的 API 內容,僅在必要位置補充精簡的 AI 解說。