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

Name
class Encoder< BMXLocationAttachment >
class Decoder< BMXLocationAttachment >

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 地址名称

function ~BMXLocationAttachment

inline virtual ~BMXLocationAttachment()

析构函数

function type

inline virtual Type type() const

返回位置附件类型

Return: Type

Reimplements: floo::BMXMessageAttachment::type

function clone

virtual BMXMessageAttachmentPtr clone() const

克隆函数

Return: BMXMessageAttachmentPtr

Reimplements: floo::BMXMessageAttachment::clone

function latitude

double latitude() const

纬度

Return: double

function longitude

double longitude() const

经度

Return: double

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 > 
);

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

© 2019-2022 美信拓扑 | 官网 该文件修订时间: 2022-03-07 03:07:24

results matching ""

    No results matching ""