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 Type | type() const 回傳位置附件類型 |
| virtual BMXMessageAttachmentPtr | clone() const 克隆函數 |
| double | latitude() const 緯度 |
| double | longitude() const 經度 |
| const std::string & | address() const 地址 |
Friends#
Additional inherited members#
Public Types inherited from floo::BMXMessageAttachment
| Name | |
|---|---|
| enum class | Type { Image, Voice, Video, File, Location, Command, Forward} 附件類型 |
| enum class | DownloadStatus { 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