diff --git a/docs/JSON-RPC.md b/docs/JSON-RPC.md index 071751bfc1..b770ef11a6 100644 --- a/docs/JSON-RPC.md +++ b/docs/JSON-RPC.md @@ -200,7 +200,7 @@ Results: | result.countryId | string | The musician’s country ID (see QLocale::Country). | | result.country | string | The musician’s country. | | result.city | string | The musician’s city. | -| result.instrumentId | number | The musician’s instrument ID (see QLocale::Country). | +| result.instrumentId | number | The musician’s instrument ID (see CInstPictures::GetTable). | | result.instrument | number | The musician’s instrument. | | result.skillLevel | string | Your skill level (beginner, intermediate, expert, or null). | @@ -500,7 +500,7 @@ Parameters: | params.clients[*].countryId | number | The musician’s country ID (see QLocale::Country). | | params.clients[*].country | string | The musician’s country. | | params.clients[*].city | string | The musician’s city. | -| params.clients[*].instrumentId | string | The musician’s instrument ID (see QLocale::Country).. | +| params.clients[*].instrumentId | string | The musician’s instrument ID (see CInstPictures::GetTable). | | params.clients[*].instrument | string | The musician’s instrument. | diff --git a/src/clientrpc.cpp b/src/clientrpc.cpp index 31cd29d894..8c9ad3a86a 100644 --- a/src/clientrpc.cpp +++ b/src/clientrpc.cpp @@ -56,7 +56,7 @@ CClientRpc::CClientRpc ( CClient* pClient, CRpcServer* pRpcServer, QObject* pare /// @param {number} params.clients[*].countryId - The musician’s country ID (see QLocale::Country). /// @param {string} params.clients[*].country - The musician’s country. /// @param {string} params.clients[*].city - The musician’s city. - /// @param {string} params.clients[*].instrumentId - The musician’s instrument ID (see QLocale::Country).. + /// @param {string} params.clients[*].instrumentId - The musician’s instrument ID (see CInstPictures::GetTable). /// @param {string} params.clients[*].instrument - The musician’s instrument. connect ( pClient, &CClient::ConClientListMesReceived, [=] ( CVector vecChanInfo ) { QJsonArray arrChanInfo; @@ -248,7 +248,7 @@ CClientRpc::CClientRpc ( CClient* pClient, CRpcServer* pRpcServer, QObject* pare /// @result {string} result.countryId - The musician’s country ID (see QLocale::Country). /// @result {string} result.country - The musician’s country. /// @result {string} result.city - The musician’s city. - /// @result {number} result.instrumentId - The musician’s instrument ID (see QLocale::Country). + /// @result {number} result.instrumentId - The musician’s instrument ID (see CInstPictures::GetTable). /// @result {number} result.instrument - The musician’s instrument. /// @result {string} result.skillLevel - Your skill level (beginner, intermediate, expert, or null). pRpcServer->HandleMethod ( "jamulusclient/getChannelInfo", [=] ( const QJsonObject& params, QJsonObject& response ) { @@ -258,7 +258,7 @@ CClientRpc::CClientRpc ( CClient* pClient, CRpcServer* pRpcServer, QObject* pare { "countryId", pClient->ChannelInfo.eCountry }, { "country", QLocale::countryToString ( pClient->ChannelInfo.eCountry ) }, { "city", pClient->ChannelInfo.strCity }, - { "instrumentId", pClient->ChannelInfo.iInstrument }, + { "instrumentId", pClient->ChannelInfo.iInstrument }, { "instrument", CInstPictures::GetName ( pClient->ChannelInfo.iInstrument ) }, { "skillLevel", SerializeSkillLevel ( pClient->ChannelInfo.eSkillLevel ) }, };