@studyportals/sp-holonet-interface
Version:
Contains various types (DTOs) found in HoloNet's interface.
37 lines • 1.17 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const sp_r2d2_interface_1 = require("@studyportals/sp-r2d2-interface");
/**
* The result received after successfully executing an event with the
* DeploymentStatusRequestHandler handler.
*/
class DeploymentStatusResult extends sp_r2d2_interface_1.SuccessResult {
/**
* Initializes a new DeploymentStatusResult instance.
*
* @param deploymentTime The timestamp of the last deployment.
*/
constructor(deploymentTime) {
super();
this._deploymentTime = deploymentTime;
}
/**
* Gets the timestamp of the last deployment.
*/
get deploymentTime() {
return this._deploymentTime;
}
/**
* Returns an object that can be stringified, resulting in the correct
* serialization of the current instance.
*
* @see JSON.stringify
*/
toJSON() {
const obj = super.toJSON();
obj.deploymentTime = this.deploymentTime;
return obj;
}
}
exports.DeploymentStatusResult = DeploymentStatusResult;
//# sourceMappingURL=deployment-status-result.class.js.map