| 34 | void MyStubServer::notifyServer() { cout << "Server got notified" << endl; } |
| 35 | |
| 36 | string MyStubServer::sayHello(const string &name) { |
| 37 | if (name == "") |
| 38 | throw JsonRpcException(-32100, "Name was empty"); |
| 39 | return "Hello " + name; |
| 40 | } |
| 41 | |
| 42 | int MyStubServer::addNumbers(int param1, int param2) { return param1 + param2; } |
| 43 |