json rpc refactoring

This commit is contained in:
badaix 2017-02-19 17:31:14 +01:00
parent 37e5236106
commit ca6a7e35f8
2 changed files with 61 additions and 40 deletions

View file

@ -268,7 +268,7 @@ struct Group
{
name = trim_copy(jGet<std::string>(j, "name", ""));
id = trim_copy(jGet<std::string>(j, "id", ""));
streamId = trim_copy(jGet<std::string>(j, "stream", ""));
streamId = trim_copy(jGet<std::string>(j, "stream_id", ""));
muted = jGet<bool>(j, "muted", false);
clients.clear();
if (j.count("clients"))
@ -288,7 +288,7 @@ struct Group
json j;
j["name"] = trim_copy(name);
j["id"] = trim_copy(id);
j["stream"] = trim_copy(streamId);
j["stream_id"] = trim_copy(streamId);
j["muted"] = muted;
json jClients = json::array();