瀏覽代碼

chore: updated mobile player state type

Fela Maslen 4 年之前
父節點
當前提交
c2105dcddb
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      gmus-mobile/lib/controller.dart

+ 6 - 2
gmus-mobile/lib/controller.dart

@@ -11,18 +11,22 @@ class Player {
   double currentTime = 0;
   double seekTime = -1;
   String master;
+  List<String> activeClients = [];
   int songId;
   bool playing = false;
   List<int> queue = [];
+  bool shuffleMode = false;
 
   Map<String, dynamic> stringify() {
     return {
+      'songId': this.songId,
+      'playing': this.playing,
       'currentTime': this.currentTime,
       'seekTime': this.seekTime,
       'master': this.master,
-      'songId': this.songId,
-      'playing': this.playing,
+      'activeClients': this.activeClients,
       'queue': this.queue,
+      'shuffleMode': this.shuffleMode,
     };
   }
 }