« 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 <qznebula@protonmail.com>2024-05-16 21:58:20 -0300
commitb47f2968742b77378791f171c819957546b4fc7d (patch)
tree42fc5d7629422e72485f8a1af20aec8854a9d7dc /backend.js
parent9b7544a8c30e176bff9b8b9014719e9e6456fb63 (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 b629424..86da76e 100644
--- a/backend.js
+++ b/backend.js
@@ -690,8 +690,8 @@ export default 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`);
@@ -888,4 +888,16 @@ export default 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)
+  }
 }