add opened tabs to state

This commit is contained in:
ouwou
2022-04-21 14:41:45 -04:00
parent 2dab595476
commit b4ab88f708
7 changed files with 62 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
#pragma once
#include <vector>
#include <nlohmann/json.hpp>
#include "discord/snowflake.hpp"
@@ -18,9 +19,17 @@ struct ExpansionState {
friend void from_json(const nlohmann::json &j, ExpansionState &m);
};
struct TabsState {
std::vector<Snowflake> Channels;
friend void to_json(nlohmann::json &j, const TabsState &m);
friend void from_json(const nlohmann::json &j, TabsState &m);
};
struct AbaddonApplicationState {
Snowflake ActiveChannel;
ExpansionStateRoot Expansion;
TabsState Tabs;
friend void to_json(nlohmann::json &j, const AbaddonApplicationState &m);
friend void from_json(const nlohmann::json &j, AbaddonApplicationState &m);