NUGU SDK Linux  1.7.6
NuguClientKit::ISessionManager Class Referenceabstract

SessionManager interface. More...

#include <session_manager_interface.hh>

Public Member Functions

virtual void activate (const std::string &dialog_id)=0
 Activate Session which is mapped with dialog request id. More...
 
virtual void addListener (ISessionManagerListener *listener)=0
 Add ISessionManagerListener. More...
 
virtual void clear ()=0
 Clear all session info.
 
virtual void deactivate (const std::string &dialog_id)=0
 Deactivate Session which is mapped with dialog request id. More...
 
virtual NJson::Value getActiveSessionInfo ()=0
 Get current active session info which is composed by session list. More...
 
virtual void removeListener (ISessionManagerListener *listener)=0
 Remove ISessionManagerListener. More...
 
virtual void set (const std::string &dialog_id, Session &&session)=0
 Set Session object which is received by Session Interface. More...
 

Detailed Description

SessionManager interface.

See also
ISessionManagerListener

Member Function Documentation

◆ addListener()

virtual void NuguClientKit::ISessionManager::addListener ( ISessionManagerListener listener)
pure virtual

Add ISessionManagerListener.

Parameters
[in]listenerISessionManagerListener instance

◆ removeListener()

virtual void NuguClientKit::ISessionManager::removeListener ( ISessionManagerListener listener)
pure virtual

Remove ISessionManagerListener.

Parameters
[in]listenerISessionManagerListener instance

◆ set()

virtual void NuguClientKit::ISessionManager::set ( const std::string &  dialog_id,
Session &&  session 
)
pure virtual

Set Session object which is received by Session Interface.

Parameters
[in]dialog_iddialog request id for mapping Session object
[in]sessionSession object

◆ activate()

virtual void NuguClientKit::ISessionManager::activate ( const std::string &  dialog_id)
pure virtual

Activate Session which is mapped with dialog request id.

Parameters
[in]dialog_iddialog request id for Session

◆ deactivate()

virtual void NuguClientKit::ISessionManager::deactivate ( const std::string &  dialog_id)
pure virtual

Deactivate Session which is mapped with dialog request id.

Parameters
[in]dialog_iddialog request id for Session

◆ getActiveSessionInfo()

virtual NJson::Value NuguClientKit::ISessionManager::getActiveSessionInfo ( )
pure virtual

Get current active session info which is composed by session list.

Returns
session info which is formatted to json type

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