mirror of https://github.com/Hypfer/Valetudo.git
25 lines
609 B
JavaScript
25 lines
609 B
JavaScript
const SerializableEntity = require("../SerializableEntity");
|
|
|
|
|
|
// noinspection JSCheckFunctionSignatures
|
|
class ValetudoMapSnapshot extends SerializableEntity {
|
|
/**
|
|
*
|
|
* @param {object} options
|
|
* @param {string} options.id
|
|
* @param {Date} [options.timestamp]
|
|
* @param {import("../map/ValetudoMap")} [options.map]
|
|
* @param {object} [options.metaData]
|
|
* @class
|
|
*/
|
|
constructor(options) {
|
|
super(options);
|
|
|
|
this.id = options.id;
|
|
this.timestamp = options.timestamp;
|
|
this.map = options.map;
|
|
}
|
|
}
|
|
|
|
module.exports = ValetudoMapSnapshot;
|