26 lines
945 B
JavaScript
26 lines
945 B
JavaScript
/**
|
|
*
|
|
*/
|
|
class nodeObject {
|
|
/**
|
|
*
|
|
* @param {*} param0._id The ID of the node
|
|
* @param {*} param0._name The name of the node
|
|
* @param {*} param0._ip The IP that the master can contact the node at
|
|
* @param {*} param0._port The port that the client is listening on
|
|
* @param {*} param0._location The physical location of the node
|
|
* @param {*} param0._online An integer representation of the online status of the bot, ie 0=off, 1=on
|
|
* @param {*} param0._nearbySystems An object array of nearby systems
|
|
*/
|
|
constructor({ _id = null, _name = null, _ip = null, _port = null, _location = null, _nearbySystems = null, _online = null }) {
|
|
this.id = _id;
|
|
this.name = _name;
|
|
this.ip = _ip;
|
|
this.port = _port;
|
|
this.location = _location;
|
|
this.nearbySystems = _nearbySystems;
|
|
this.online = _online;
|
|
}
|
|
}
|
|
|
|
exports.nodeObject = nodeObject; |