Valetudo/backend/lib/valetudo_events/events/ConsumableDepletedValetudoE...

21 lines
577 B
JavaScript

const ValetudoEvent = require("./ValetudoEvent");
class ConsumableDepletedValetudoEvent extends ValetudoEvent {
/**
*
* @param {object} options
* @param {string} options.type
* @param {string} options.subType
* @param {object} [options.metaData]
* @class
*/
constructor(options) {
super(Object.assign({}, options, {id: "consumable_depleted_" + options.type + "_" + options.subType}));
this.type = options.type;
this.subType = options.subType;
}
}
module.exports = ConsumableDepletedValetudoEvent;