mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-22 05:26:17 +02:00
added getter for parameters
This commit is contained in:
parent
6121fdceae
commit
79c98e9e10
3 changed files with 57 additions and 30 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue