1
0

HydrawiseController.js 1.1 KB

1234567891011121314151617181920212223242526
  1. "use strict";
  2. /**
  3. * @author Martijn Dierckx
  4. */
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. /** Class representing a Hydrawise controller */
  7. class HydrawiseController {
  8. /**
  9. * Create a new instance of a HydrawiseController
  10. * @param {object} options - Options object containing all parameters
  11. * @param {number} options.id - The unique identifier of the controller
  12. * @param {string} options.name - The name of the controller
  13. * @param {string} options.serialNumber - The serial number of the controller
  14. * @param {Date} options.lastContactWithCloud - The last date time the controller was able to contact/sync with the cloud
  15. * @param {string} options.status - The status as returned by the Hydrawise cloud
  16. */
  17. constructor(options) {
  18. this.id = options.id;
  19. this.name = options.name;
  20. this.serialNumber = options.serialNumber;
  21. this.lastContactWithCloud = options.lastContactWithCloud;
  22. this.status = options.status;
  23. }
  24. }
  25. exports.HydrawiseController = HydrawiseController;
  26. //# sourceMappingURL=HydrawiseController.js.map