« get me outta code hell

"party sources" ui (no socket functionality yet) - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/backend.js
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-04-22 20:06:58 -0300
committer(quasar) nebula <towerofnix@gmail.com>2021-04-22 20:06:58 -0300
commit45f804fef3766e3183610b93ac3d1ffb89f08408 (patch)
treea8591c4886ee9109ae21a5ee18a9c282a7435998 /backend.js
parent1ca458abc3503ba951c5e19362a54208a285833c (diff)
"party sources" ui (no socket functionality yet)
Diffstat (limited to 'backend.js')
-rw-r--r--backend.js16
1 files changed, 14 insertions, 2 deletions
diff --git a/backend.js b/backend.js
index 349d7f3..ddfb000 100644
--- a/backend.js
+++ b/backend.js
@@ -660,8 +660,8 @@ class Backend extends EventEmitter {
   } = {}) {
     super()
 
-    this.playerName = playerName;
-    this.playerOptions = playerOptions;
+    this.playerName = playerName
+    this.playerOptions = playerOptions
 
     if (playerOptions.length && !playerName) {
       throw new Error(`Must specify playerName to specify playerOptions`);
@@ -858,6 +858,18 @@ class Backend extends EventEmitter {
   showLogMessage(messageInfo) {
     this.emit('log message', messageInfo)
   }
+
+  loadPartyGrouplike(partyGrouplike) {
+    this.emit('got party grouplike', partyGrouplike)
+  }
+
+  shareWithParty(item) {
+    this.emit('share with party', item)
+  }
+
+  partyGrouplikeUpdated(partyGrouplike) {
+    this.emit('party grouplike updated', partyGrouplike)
+  }
 }
 
 module.exports = Backend