LANYINGDevelopers
Web & Mini ProgramiOSAndroidC++Server API

floo::BMXMessageAttachment#

Message attachment

#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}
Attachment type
enum classDownloadStatus { Downloaing, Successed, Failed, NotStart, Canceled}
Attachment download state

Public Functions#

Name
BMXMessageAttachment()
Constructor
virtual~BMXMessageAttachment()
Destructor
virtual Typetype() const =0
Attachment type
virtual std::shared_ptr< BMXMessageAttachment >clone() const =0
Copy attachment

Public Types Documentation#

enum Type#

EnumeratorValueDescription
Image1Image
VoiceVoice
VideoVideo clip
FileFile
LocationLocation
CommandCommand message
ForwardForward message

Attachment type

enum DownloadStatus#

EnumeratorValueDescription
DownloaingDownloading
SuccessedDownload succeeded
FailedDownload failed
NotStartDownload has net started yet
CanceledDownload 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

Generated API content with concise AI notes where context helps.