mirror of https://github.com/Hypfer/Valetudo.git
34 lines
1011 B
JavaScript
34 lines
1011 B
JavaScript
/**
|
|
* @typedef {import("./ValetudoVirtualWall")} ValetudoVirtualWall
|
|
* @typedef {import("./ValetudoRestrictedZone")} ValetudoRestrictedZone
|
|
*/
|
|
|
|
const SerializableEntity = require("../SerializableEntity");
|
|
|
|
|
|
// noinspection JSUnusedGlobalSymbols
|
|
/**
|
|
* @class ValetudoVirtualRestrictions
|
|
* @property {Array<ValetudoVirtualWall>} virtualWalls
|
|
* @property {Array<ValetudoRestrictedZone>} restrictedZones
|
|
*/
|
|
class ValetudoVirtualRestrictions extends SerializableEntity {
|
|
/**
|
|
* This is a named container which contains RestrictedZones and virtualWalls
|
|
*
|
|
* @param {object} options
|
|
* @param {Array<ValetudoVirtualWall>} options.virtualWalls
|
|
* @param {Array<ValetudoRestrictedZone>} options.restrictedZones
|
|
* @param {object} [options.metaData]
|
|
* @class
|
|
*/
|
|
constructor(options) {
|
|
super(options);
|
|
|
|
this.virtualWalls = options.virtualWalls;
|
|
this.restrictedZones = options.restrictedZones;
|
|
}
|
|
}
|
|
|
|
module.exports = ValetudoVirtualRestrictions;
|