NUGU SDK Linux  1.7.5
NuguClientKit::INetworkManagerListener Class Reference

network manager listener interface More...

#include <network_manager_interface.hh>

Public Member Functions

virtual void onError (NetworkError error)
 Report an error while communicating with the NUGU server. More...
 
virtual void onEventAttachmentSend (NuguEvent *nev, int seq, bool is_end, size_t length, unsigned char *data)
 Report that the attachment will be sent to the server. More...
 
virtual void onEventResponse (const char *msg_id, const char *data, bool success)
 Report the response data received from the server. More...
 
virtual void onEventSend (NuguEvent *nev)
 Report that the event will be sent to the server. More...
 
virtual void onEventSendResult (const char *msg_id, bool success, int code)
 Report the result of sending an event from the server. More...
 
virtual void onStatusChanged (NetworkStatus status)
 Report the connection status with the NUGU server. More...
 

Detailed Description

network manager listener interface

See also
INetworkManager

Member Function Documentation

◆ onStatusChanged()

virtual void NuguClientKit::INetworkManagerListener::onStatusChanged ( NetworkStatus  status)
virtual

Report the connection status with the NUGU server.

Parameters
[in]statusnetwork status

◆ onError()

virtual void NuguClientKit::INetworkManagerListener::onError ( NetworkError  error)
virtual

Report an error while communicating with the NUGU server.

Parameters
[in]errornetwork error

◆ onEventSend()

virtual void NuguClientKit::INetworkManagerListener::onEventSend ( NuguEvent nev)
virtual

Report that the event will be sent to the server.

Parameters
[in]nevNuguEvent object

◆ onEventAttachmentSend()

virtual void NuguClientKit::INetworkManagerListener::onEventAttachmentSend ( NuguEvent nev,
int  seq,
bool  is_end,
size_t  length,
unsigned char *  data 
)
virtual

Report that the attachment will be sent to the server.

Parameters
[in]nevNuguEvent object

◆ onEventSendResult()

virtual void NuguClientKit::INetworkManagerListener::onEventSendResult ( const char *  msg_id,
bool  success,
int  code 
)
virtual

Report the result of sending an event from the server.

Parameters
[in]msg_idevent message id
[in]successevent result
[in]codeevent result code (similar to http status code)

◆ onEventResponse()

virtual void NuguClientKit::INetworkManagerListener::onEventResponse ( const char *  msg_id,
const char *  data,
bool  success 
)
virtual

Report the response data received from the server.

Parameters
[in]msg_idevent message id
[in]dataresponse raw data (format json)
[in]successevent result

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