UNPKG

@bestapps/voice-framework

Version:
49 lines (38 loc) 682 B
'use strict'; const Data = require("../data"); class DataClova extends Data { constructor(data = '') { super(data); this.event = data.event; this.context = data.context; } /** * * @param {*} event */ setEvent(event) { this.event = event; } /** * * @param {*} event */ getEvent(event) { return this.event; } /** * * @param {Object} context */ setContext(context) { this.context = context; } /** * * @param {Object} context */ getContext(context) { return this.context; } } module.exports = DataClova;