NUGU SDK Linux  1.7.6
NuguClientKit::CapabilityEvent Class Reference

CapabilityEvent. More...

#include <capability.hh>

Public Member Functions

 CapabilityEvent (const std::string &name, Capability *cap)
 
void forceClose ()
 Close event forcibly.
 
std::string getDialogRequestId ()
 Get dialog request id. More...
 
std::string getMessageId ()
 Get message id. More...
 
std::string getName ()
 Get event name. More...
 
void sendAttachmentEvent (bool is_end, size_t size, unsigned char *data)
 Send attachment event to server. More...
 
void sendEvent (const std::string &context, const std::string &payload)
 Send event to server. More...
 
void setDialogRequestId (const std::string &id)
 Set dialog request id. More...
 
void setMimeType (const std::string &type)
 Set mime type. More...
 
void setType (enum nugu_event_type type)
 Set event type. More...
 

Detailed Description

Member Function Documentation

◆ getName()

std::string NuguClientKit::CapabilityEvent::getName ( )

Get event name.

Returns
event name

◆ getDialogRequestId()

std::string NuguClientKit::CapabilityEvent::getDialogRequestId ( )

Get dialog request id.

Returns
dialog request id

◆ getMessageId()

std::string NuguClientKit::CapabilityEvent::getMessageId ( )

Get message id.

Returns
message id

◆ setDialogRequestId()

void NuguClientKit::CapabilityEvent::setDialogRequestId ( const std::string &  id)

Set dialog request id.

Parameters
[in]iddialog request id

◆ setType()

void NuguClientKit::CapabilityEvent::setType ( enum nugu_event_type  type)

Set event type.

Parameters
[in]typeevent type

◆ setMimeType()

void NuguClientKit::CapabilityEvent::setMimeType ( const std::string &  type)

Set mime type.

Parameters
[in]typemime type

◆ sendEvent()

void NuguClientKit::CapabilityEvent::sendEvent ( const std::string &  context,
const std::string &  payload 
)

Send event to server.

Parameters
[in]contextcontext info
[in]payloadpayload info

◆ sendAttachmentEvent()

void NuguClientKit::CapabilityEvent::sendAttachmentEvent ( bool  is_end,
size_t  size,
unsigned char *  data 
)

Send attachment event to server.

Parameters
[in]is_endwhether final attachment event
[in]sizeattachment data size
[in]dataattachment data

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