LANYINGDevelopers
Web & Mini ProgramiOSAndroidC++Server API

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 Typetype() const
Return the type of location attachment
virtual BMXMessageAttachmentPtrclone() const
Cloning function
doublelatitude() const
Latitude
doublelongitude() const
Longitude
const std::string &address() const
Address

Friends#

Additional inherited members#

Public Types inherited from floo::BMXMessageAttachment

Name
enum classType { Image, Voice, Video, File, Location, Command, Forward}
Attachment type
enum classDownloadStatus { 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:

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

function ~BMXLocationAttachment#

inline virtual ~BMXLocationAttachment()

Destructor

Example:

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

function type#

inline virtual Type type() const

Return the type of location attachment

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

Cloning function

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

Latitude

Return: double

Example:

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

function longitude#

double longitude() const

Longitude

Return: double

Example:

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

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:

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

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

Generated API content with concise AI notes where context helps.