UNPKG

@serenity-js/core

Version:

The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure

28 lines 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SceneBackgroundDetected = void 0; const tiny_types_1 = require("tiny-types"); const index_js_1 = require("../model/index.js"); const DomainEvent_js_1 = require("./DomainEvent.js"); /** * @group Events */ class SceneBackgroundDetected extends DomainEvent_js_1.DomainEvent { sceneId; name; description; static fromJSON(o) { return new SceneBackgroundDetected(index_js_1.CorrelationId.fromJSON(o.sceneId), index_js_1.Name.fromJSON(o.name), index_js_1.Description.fromJSON(o.description)); } constructor(sceneId, name, description, timestamp) { super(timestamp); this.sceneId = sceneId; this.name = name; this.description = description; (0, tiny_types_1.ensure)('sceneId', sceneId, (0, tiny_types_1.isDefined)()); (0, tiny_types_1.ensure)('name', name, (0, tiny_types_1.isDefined)()); (0, tiny_types_1.ensure)('description', description, (0, tiny_types_1.isDefined)()); } } exports.SceneBackgroundDetected = SceneBackgroundDetected; //# sourceMappingURL=SceneBackgroundDetected.js.map