Groups: interims commit

This commit is contained in:
badaix 2016-12-04 21:35:44 +01:00
parent 22f768311d
commit 0af508f6ee
14 changed files with 555 additions and 328 deletions

View file

@ -257,8 +257,11 @@ struct ClientInfo
struct Group
{
Group()
Group(const ClientInfoPtr client = nullptr)
{
if (client)
id = client->id;
id = generateUUID();
}
void fromJson(const json& j)
@ -314,15 +317,16 @@ public:
void remove(ClientInfoPtr client);
GroupPtr getGroup(ClientInfoPtr client);
GroupPtr getGroup(const std::string& groupId) const;
json getClientInfos() const;
// json getClientInfos() const;
json getGroups() const;
json getServerStatus(const std::string& clientId, const json& streams) const;
json getServerStatus(const json& streams) const;
void save();
std::vector<GroupPtr> groups;
std::vector<ClientInfoPtr> clients;
// std::vector<ClientInfoPtr> clients;
private:
Config();