17 #ifndef __NUGU_SESSION_MANAGER_INTERFACE_H__
18 #define __NUGU_SESSION_MANAGER_INTERFACE_H__
20 #include <njson/njson.h>
25 namespace NuguClientKit {
94 virtual void set(
const std::string& dialog_id,
Session&& session) = 0;
100 virtual void activate(
const std::string& dialog_id) = 0;
ISessionManagerListener interface.
Definition: session_manager_interface.hh:51
virtual void activated(const std::string &dialog_id, Session session)=0
Receive callback when the session is activated.
virtual void deactivated(const std::string &dialog_id)=0
Receive callback when the session is deactivated.
SessionManager interface.
Definition: session_manager_interface.hh:73
virtual void activate(const std::string &dialog_id)=0
Activate Session which is mapped with dialog request id.
virtual NJson::Value getActiveSessionInfo()=0
Get current active session info which is composed by session list.
virtual void deactivate(const std::string &dialog_id)=0
Deactivate Session which is mapped with dialog request id.
virtual void clear()=0
Clear all session info.
virtual void removeListener(ISessionManagerListener *listener)=0
Remove ISessionManagerListener.
virtual void addListener(ISessionManagerListener *listener)=0
Add ISessionManagerListener.
virtual void set(const std::string &dialog_id, Session &&session)=0
Set Session object which is received by Session Interface.
struct NuguClientKit::_Session Session
Model for containing session info.
Model for containing session info.
Definition: session_manager_interface.hh:42
std::string ps_id
Definition: session_manager_interface.hh:44
std::string session_id
Definition: session_manager_interface.hh:43