| 17 | class SampleServer : public AbstractServer<SampleServer> { |
| 18 | public: |
| 19 | SampleServer(RedisServer &server) : AbstractServer<SampleServer>(server) { |
| 20 | this->bindAndAddMethod(Procedure("sayHello", PARAMS_BY_NAME, JSON_STRING, "name", JSON_STRING, NULL), &SampleServer::sayHello); |
| 21 | this->bindAndAddNotification(Procedure("notifyServer", PARAMS_BY_NAME, NULL), &SampleServer::notifyServer); |
| 22 | } |
| 23 | |
| 24 | // method |
| 25 | void sayHello(const Json::Value &request, Json::Value &response) { response = "Hello: " + request["name"].asString(); } |
nothing calls this directly
no test coverage detected