added getter for parameters

This commit is contained in:
badaix 2015-09-01 08:58:17 +02:00
parent 6121fdceae
commit 79c98e9e10
3 changed files with 57 additions and 30 deletions

View file

@ -109,6 +109,13 @@ Json JsonRequest::getError(int code, const std::string& message)
}
bool JsonRequest::isParam(size_t idx, const std::string& param)
{
if (idx >= params.size())
throw JsonInvalidParamsException(*this);
return (params[idx] == param);
}
/*