floo::BMXLocationAttachment

Location message attachment

#include <bmx_location_attachment.h>

Inherits from floo::BMXMessageAttachment, BMXBaseObject

Public Functions

Name
BMXLocationAttachment(double latitude, double longitude, const std::string & address)
Constructor
virtual ~BMXLocationAttachment()
Destructor
virtual Type type() const
Return the type of location attachment
virtual BMXMessageAttachmentPtr clone() const
Cloning function
double latitude() const
Latitude
double longitude() const
Longitude
const std::string & address() const
Address

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

Public Functions inherited from floo::BMXMessageAttachment

Name
BMXMessageAttachment()
Constructor
virtual ~BMXMessageAttachment()
Destructor

Public Functions Documentation

function BMXLocationAttachment

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

Constructor

Parameters:

  • latitude Latitude
  • longitude Longitude
  • address Address name

Example:

function ~BMXLocationAttachment

inline virtual ~BMXLocationAttachment()

Destructor

Example:

function type

inline virtual Type type() const

Return the type of location attachment

Return: Type

Reimplements: floo::BMXMessageAttachment::type

Example:

function clone

virtual BMXMessageAttachmentPtr clone() const

Cloning function

Return: BMXMessageAttachmentPtr

Reimplements: floo::BMXMessageAttachment::clone

Example:

function latitude

double latitude() const

Latitude

Return: double

Example:

function longitude

double longitude() const

Longitude

Return: double

Example:

function address

const std::string & address() const

Address

Return: std::string

Friends

friend Encoder< BMXLocationAttachment >

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

friend Decoder< BMXLocationAttachment >

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

Example:


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

© 2019-2024 MaximTop | Homepage | Site Map Last modified time: 2024-12-07 06:49:06