-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathserverSetting.js
More file actions
29 lines (28 loc) · 774 Bytes
/
Copy pathserverSetting.js
File metadata and controls
29 lines (28 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"use strict";
/**
* Encapsulates the settings for a {ServerGroup}.
*/
export class ServerSetting {
/**
* Constructor.
*
* @param {String} name
* @param {String} url
* @param {Number} frequency
* @param {Number} timeout
* @param {boolean} isGet
* @param {boolean} notifies
* @param {boolean} visible
* @param {boolean} ignoreTLSErrors
*/
constructor(name, url, frequency, timeout, isGet, notifies, visible = true, ignoreTLSErrors = false) {
this.name = name;
this.url = url;
this.frequency = frequency;
this.timeout = timeout;
this.isGet = isGet;
this.notifies = notifies;
this.visible = visible;
this.ignoreTLSErrors = ignoreTLSErrors;
}
}