Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-15 19:49:57 +03:00
1 parent 01362d2e51
commit 39aff68d8d
29 files changed
+2061 -1818

No files matched your search

+12 -51
View File
@@ -1,6 +1,7 @@
#pragma once
#include <TrackTypes.hpp>
#include <ExtensionPlugin.hpp>
#include <Void/Data/Json.hpp>
#include <Void/Data/Reflect.hpp>
#include <cstdint>
@@ -85,26 +86,6 @@ namespace Echoion::Core::Dto
std::string text;
};
struct ListeningRoomRequest {
std::string room;
};
struct ListeningRoomPlayRequest {
std::string room;
std::string query;
};
struct ListeningRoomQueueRequest {
std::string room;
std::uint64_t queueId = 0;
};
struct ListeningRoomMoveRequest {
std::string room;
std::uint64_t queueId = 0;
std::uint32_t newPosition = 0;
};
// ── RPC handler responses ───────────────────────────────────────────────
struct Track {
@@ -201,19 +182,19 @@ namespace Echoion::Core::Dto
float volume = 0.0f;
};
struct ListeningRoom {
std::string name;
std::uint64_t ownerId = 0;
std::vector<std::uint64_t> members;
bool isPlaying = false;
bool isPaused = false;
std::uint64_t queueSize = 0;
bool isOwner = false;
struct Capabilities {
bool plugins = false;
bool webExtensions = false;
};
struct ListeningRoomList {
std::vector<ListeningRoom> rooms;
std::optional<std::string> currentRoom;
struct PluginCallRequest {
std::string plugin;
std::string method;
std::string params;
};
struct PluginExtensions {
std::vector<Api::ExtensionWebAsset> assets;
};
struct Autoplay {
@@ -227,26 +208,6 @@ namespace Echoion::Core::Dto
std::string language;
};
// Custom emoji metadata (name + mime); the image itself is served at
// GET /emoji/<name>, not inlined here.
struct CustomEmojiDto {
std::string name;
std::string mime;
std::string addedBy;
};
struct CustomEmojiList {
std::vector<CustomEmojiDto> emojis;
};
// AddCustomEmoji request: name + mime + base64-encoded image bytes.
struct AddEmojiRequest {
std::string name;
std::string mime;
std::string dataBase64;
};
struct EmojiNameRequest {
std::string name;
};
struct QueuedResponse {
bool success = true;
std::uint64_t queueId = 0;