mirror of https://github.com/Hypfer/Valetudo.git
33 lines
858 B
JavaScript
33 lines
858 B
JavaScript
const SerializableEntity = require("../SerializableEntity");
|
|
|
|
|
|
class ValetudoWifiConfiguration extends SerializableEntity {
|
|
/**
|
|
* @param {object} options
|
|
* @param {string} options.ssid
|
|
* @param {object} options.credentials
|
|
* @param {ValetudoWifiConfigurationCredentialsType} options.credentials.type
|
|
* @param {object} options.credentials.typeSpecificSettings //e.g. key or user/password
|
|
* @param {object} [options.metaData]
|
|
*
|
|
* @class
|
|
*/
|
|
constructor(options) {
|
|
super(options);
|
|
|
|
this.ssid = options.ssid;
|
|
this.credentials = options.credentials;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @typedef {string} ValetudoWifiConfigurationCredentialsType
|
|
* @enum {string}
|
|
*
|
|
*/
|
|
ValetudoWifiConfiguration.CREDENTIALS_TYPE = Object.freeze({
|
|
WPA2_PSK: "wpa2_psk"
|
|
});
|
|
|
|
module.exports = ValetudoWifiConfiguration;
|