renamed "System" to "Server"

This commit is contained in:
badaix 2016-01-17 15:00:01 +01:00
parent eb99b52c5e
commit b4701fb0fe
5 changed files with 12 additions and 11 deletions

View file

@ -141,7 +141,7 @@ void StreamServer::onMessageReceived(ControlSession* controlSession, const std::
throw JsonInternalErrorException("Client not found", request.id);
}
if (request.method == "System.GetStatus")
if (request.method == "Server.GetStatus")
{
json jClient = json::array();
if (request.hasParam("client"))
@ -158,10 +158,11 @@ void StreamServer::onMessageReceived(ControlSession* controlSession, const std::
{"host", getHostName()},
{"version", VERSION}
}},
{"clients", jClient}
{"clients", jClient},
{"streams", "TODO"}
};
}
else if (request.method == "System.DeleteClient")
else if (request.method == "Server.DeleteClient")
{
clientInfo = Config::instance().getClientInfo(request.getParam("client").get<string>(), false);
if (clientInfo == nullptr)