17 #ifndef __NUGU_EVENT_H__
18 #define __NUGU_EVENT_H__
167 const char *referrer_id);
NUGU_API int nugu_event_set_referrer_id(NuguEvent *nev, const char *referrer_id)
Set the referer-dialog-request-id of event.
NUGU_API const char * nugu_event_peek_json(NuguEvent *nev)
Get the payload of event.
NUGU_API char * nugu_event_generate_payload(NuguEvent *nev)
Generate JSON payload using nugu_event attributes.
NUGU_API NuguEvent * nugu_event_new(const char *name_space, const char *name, const char *version)
Create new event object.
NUGU_API const char * nugu_event_peek_referrer_id(NuguEvent *nev)
Get the referer-dialog-request-id of event.
NUGU_API const char * nugu_event_peek_name(NuguEvent *nev)
Get the name of event.
NUGU_API const char * nugu_event_peek_msg_id(NuguEvent *nev)
Get the message-id of event.
NUGU_API int nugu_event_set_json(NuguEvent *nev, const char *json)
Set the payload of event.
NUGU_API int nugu_event_set_mime_type(NuguEvent *nev, const char *type)
Set the attachment mime type of NuguEvent.
NUGU_API int nugu_event_set_context(NuguEvent *nev, const char *context)
Set text context of event.
struct _nugu_event NuguEvent
Event object.
Definition: nugu_event.h:59
NUGU_API int nugu_event_get_seq(NuguEvent *nev)
Get the current sequence number of attachment data.
NUGU_API int nugu_event_set_dialog_id(NuguEvent *nev, const char *dialog_id)
Set the dialog-request-id of event.
NUGU_API void nugu_event_free(NuguEvent *nev)
Destroy the event object.
NUGU_API const char * nugu_event_peek_namespace(NuguEvent *nev)
Get the namespace of event.
NUGU_API const char * nugu_event_peek_version(NuguEvent *nev)
Get the version of event.
NUGU_API const char * nugu_event_peek_dialog_id(NuguEvent *nev)
Get the dialog-request-id of event.
NUGU_API enum nugu_event_type nugu_event_get_type(NuguEvent *nev)
Get the type of NuguEvent.
NUGU_API const char * nugu_event_peek_context(NuguEvent *nev)
Get the context of event.
NUGU_API const char * nugu_event_peek_mime_type(NuguEvent *nev)
Get the attachment mime type of NuguEvent.
nugu_event_type
event types
Definition: nugu_event.h:48
NUGU_API int nugu_event_increase_seq(NuguEvent *nev)
Increase the sequence number.
NUGU_API int nugu_event_set_type(NuguEvent *nev, enum nugu_event_type type)
Set the type of NuguEvent.
@ NUGU_EVENT_TYPE_WITH_ATTACHMENT
Definition: nugu_event.h:52
@ NUGU_EVENT_TYPE_DEFAULT
Definition: nugu_event.h:49