Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-12 02:56:29 +03:00
1 parent 5c036d91fb
commit 01362d2e51
14 files changed
+1324 -51

No files matched your search

@@ -1,5 +1,6 @@
#pragma once
#include "TrackTypes.hpp"
#include "RpcTypes.hpp"
#include <chrono>
#include <cstdint>
#include <optional>
@@ -45,6 +46,18 @@ namespace Echoion::Core
std::string lastActivity; // ISO 8601
};
struct ListeningRoomState {
std::string name;
uint64_t ownerId = 0;
std::vector<uint64_t> members;
Echoion::Api::PlaybackState playback;
std::vector<QueueEntry> queue;
std::optional<std::string> currentStreamUrl;
int64_t playbackPositionMs = 0;
BotConfig config;
bool autoplay = false;
};
// Main state
PlaybackState playback;
bool hasPlayback =
@@ -52,6 +65,7 @@ namespace Echoion::Core
bool autoplay = false; // Radio mode on/off (persisted for restart)
std::vector<QueueEntryState> queue;
std::vector<SessionState> sessions;
std::vector<ListeningRoomState> listeningRooms;
// Version info
uint32_t version = 1;