fix compile error

This commit is contained in:
badaix 2019-10-12 18:38:31 +02:00
parent a30f548a31
commit 7db583f733
2 changed files with 8 additions and 8 deletions

View file

@ -254,7 +254,7 @@ void StreamServer::ProcessRequest(const jsonrpcpp::request_ptr request, jsonrpcp
/// Request: {"id":6,"jsonrpc":"2.0","method":"Group.SetName","params":{"id":"4dcc4e3b-c699-a04b-7f0c-8260d23c43e1","name":"Laptop"}}
/// Response: {"id":6,"jsonrpc":"2.0","result":{"name":"MediaPlayer"}}
/// Notification: {"jsonrpc":"2.0","method":"Group.OnNameChanged","params":{"id":"4dcc4e3b-c699-a04b-7f0c-8260d23c43e1","MediaPlayer":"Laptop"}}
group->name = request->params().get("name");
group->name = request->params().get<std::string>("name");
result["name"] = group->name;
notification.reset(new jsonrpcpp::Notification("Group.OnNameChanged", jsonrpcpp::Parameter("id", group->id, "name", group->name)));
}