floo2
Public Member Functions | Friends | List of all members
floo::BMXLocationAttachment Class Reference

位置消息附件 More...

#include <bmx_location_attachment.h>

Inheritance diagram for floo::BMXLocationAttachment:
floo::BMXMessageAttachment floo::BMXBaseObject

Public Member Functions

 BMXLocationAttachment (double latitude, double longitude, const std::string &address)
 构造函数 More...
 
virtual ~BMXLocationAttachment ()
 析构函数
 
virtual Type type () const
 返回位置附件类型 More...
 
virtual BMXMessageAttachmentPtr clone () const
 克隆函数 More...
 
double latitude () const
 纬度 More...
 
double longitude () const
 经度 More...
 
const std::string & address () const
 地址 More...
 
- Public Member Functions inherited from floo::BMXMessageAttachment
 BMXMessageAttachment ()
 构造函数
 
virtual ~BMXMessageAttachment ()
 析构函数
 
- Public Member Functions inherited from floo::BMXBaseObject
template<typename T >
T * cast ()
 

Friends

class Encoder< BMXLocationAttachment >
 
class Decoder< BMXLocationAttachment >
 

Additional Inherited Members

- Public Types inherited from floo::BMXMessageAttachment
enum  Type {
  Type::Image = 1, Type::Voice, Type::Video, Type::File,
  Type::Location, Type::Command, Type::Forward
}
 附件类型 More...
 
enum  DownloadStatus {
  DownloadStatus::Downloaing, DownloadStatus::Successed, DownloadStatus::Failed, DownloadStatus::NotStart,
  DownloadStatus::Canceled
}
 附件下载状态 More...
 

Detailed Description

位置消息附件

Constructor & Destructor Documentation

◆ BMXLocationAttachment()

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

构造函数

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

Member Function Documentation

◆ address()

const std::string& floo::BMXLocationAttachment::address ( ) const

地址

Returns
std::string

◆ clone()

virtual BMXMessageAttachmentPtr floo::BMXLocationAttachment::clone ( ) const
virtual

克隆函数

Returns
BMXMessageAttachmentPtr

Implements floo::BMXMessageAttachment.

◆ latitude()

double floo::BMXLocationAttachment::latitude ( ) const

纬度

Returns
double

◆ longitude()

double floo::BMXLocationAttachment::longitude ( ) const

经度

Returns
double

◆ type()

virtual Type floo::BMXLocationAttachment::type ( ) const
inlinevirtual

返回位置附件类型

Returns
Type

Implements floo::BMXMessageAttachment.


The documentation for this class was generated from the following file: