蓝莺开发者
Web & Mini ProgramiOSAndroidC++Server API

floo::BMXLocationAttachment#

位置消息附件

#include <bmx_location_attachment.h>

Inherits from floo::BMXMessageAttachment, BMXBaseObject

Public Functions#

Name
BMXLocationAttachment(double latitude, double longitude, const std::string & address)
构造函数
virtual~BMXLocationAttachment()
析构函数
virtual Typetype() const
返回位置附件类型
virtual BMXMessageAttachmentPtrclone() const
克隆函数
doublelatitude() const
纬度
doublelongitude() const
经度
const std::string &address() const
地址

Friends#

Additional inherited members#

Public Types inherited from floo::BMXMessageAttachment

Name
enum classType { Image, Voice, Video, File, Location, Command, Forward}
附件类型
enum classDownloadStatus { Downloaing, Successed, Failed, NotStart, Canceled}
附件下载状态

Public Functions inherited from floo::BMXMessageAttachment

Name
BMXMessageAttachment()
构造函数
virtual~BMXMessageAttachment()
析构函数

Public Functions Documentation#

function BMXLocationAttachment#

BMXLocationAttachment(
    double latitude,
    double longitude,
    const std::string & address
)

构造函数

Parameters:

  • latitude 纬度
  • longitude 经度
  • address 地址名称

Example:

{% lanying_code_snippet repo="lanying-im-embedded",class="BMXLocationAttachment",function="BMXLocationAttachment" %}{% endlanying_code_snippet %}

function ~BMXLocationAttachment#

inline virtual ~BMXLocationAttachment()

析构函数

Example:

{% lanying_code_snippet repo="lanying-im-embedded",class="BMXLocationAttachment",function="~BMXLocationAttachment" %}{% endlanying_code_snippet %}

function type#

inline virtual Type type() const

返回位置附件类型

Return: Type

Reimplements: floo::BMXMessageAttachment::type

Example:

{% lanying_code_snippet repo="lanying-im-embedded",class="BMXLocationAttachment",function="type" %}{% endlanying_code_snippet %}

function clone#

virtual BMXMessageAttachmentPtr clone() const

克隆函数

Return: BMXMessageAttachmentPtr

Reimplements: floo::BMXMessageAttachment::clone

Example:

{% lanying_code_snippet repo="lanying-im-embedded",class="BMXLocationAttachment",function="clone" %}{% endlanying_code_snippet %}

function latitude#

double latitude() const

纬度

Return: double

Example:

{% lanying_code_snippet repo="lanying-im-embedded",class="BMXLocationAttachment",function="latitude" %}{% endlanying_code_snippet %}

function longitude#

double longitude() const

经度

Return: double

Example:

{% lanying_code_snippet repo="lanying-im-embedded",class="BMXLocationAttachment",function="longitude" %}{% endlanying_code_snippet %}

function address#

const std::string & address() const

地址

Return: std::string

Friends#

friend Encoder< BMXLocationAttachment >#

friend class Encoder< BMXLocationAttachment >(
    Encoder< BMXLocationAttachment > 
);

friend Decoder< BMXLocationAttachment >#

friend class Decoder< BMXLocationAttachment >(
    Decoder< BMXLocationAttachment > 
);

Example:

{% lanying_code_snippet repo="lanying-im-embedded",class="BMXLocationAttachment",function="address" %}{% endlanying_code_snippet %}

Updated on 2022-01-26 at 17:20:40 +0800

自动生成的 API 内容,仅在必要位置补充精简的 AI 解释。