summaryrefslogtreecommitdiff
path: root/WebInterface/NodeJSServer/src/js/modules/networking/commands/_command.js
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-06-11 23:53:30 +0200
committerDennis Kobert <d-kobert@web.de>2019-06-11 23:53:30 +0200
commit3a3d0fc3d4733f8908e23a03f860d76340479ec4 (patch)
treecf4b82f61d01d2a24836e9820d73972436847982 /WebInterface/NodeJSServer/src/js/modules/networking/commands/_command.js
parentc28c9fafa2c74b101f7ce777aac722dcdeecefc6 (diff)
Reorganize Project structure
Diffstat (limited to 'WebInterface/NodeJSServer/src/js/modules/networking/commands/_command.js')
-rw-r--r--WebInterface/NodeJSServer/src/js/modules/networking/commands/_command.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/WebInterface/NodeJSServer/src/js/modules/networking/commands/_command.js b/WebInterface/NodeJSServer/src/js/modules/networking/commands/_command.js
deleted file mode 100644
index 46a1a14..0000000
--- a/WebInterface/NodeJSServer/src/js/modules/networking/commands/_command.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * Parent Command class which all commands inherit from
- */
-export default class Command {
- /**
- * Constructs basic command object
- * @param {Interface} iface Interface to communicate over
- */
- constructor(iface) {
- this.iface = iface;
- }
-
- /**
- * Registers public command names to interface
- * @param {String} name Name to register under
- * @param {...String} commandNames Names of public commands
- */
- registerPublic(name, ...commandNames) {
- this.iface.addObject(this, name, ['destroy'].concat(commandNames));
- }
-
- /**
- * Removes from iface
- */
- destroy() {
- this.iface.removeObject(this);
- }
-}