Skip to content

Commit

Permalink
Fixes docs
Browse files Browse the repository at this point in the history
  • Loading branch information
riban-bw committed Apr 2, 2024
1 parent 8938ff9 commit 6c6bfe2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/JSON-RPC.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ Results:
| result.id | number | The channel ID. |
| result.name | string | The musician’s name. |
| result.skillLevel | string | The musician’s skill level (beginner, intermediate, expert, or null). |
| result.countryId | string | The musician’s country ID (see QLocale::Country). |
| result.countryId | number | 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 CInstPictures::GetTable). |
| result.instrument | number | The musician’s instrument. |
| result.instrument | string | The musician’s instrument. |
| result.skillLevel | string | Your skill level (beginner, intermediate, expert, or null). |


Expand Down Expand Up @@ -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 CInstPictures::GetTable). |
| params.clients[*].instrumentId | number | The musician’s instrument ID (see CInstPictures::GetTable). |
| params.clients[*].instrument | string | The musician’s instrument. |


Expand Down Expand Up @@ -561,7 +561,7 @@ Parameters:
| params.servers | array | The server list. |
| params.servers[*].address | string | Socket address (ip_address:port) |
| params.servers[*].name | string | Server name |
| params.servers[*].countryId | string | Server country ID (see QLocale::Country). |
| params.servers[*].countryId | number | Server country ID (see QLocale::Country). |
| params.servers[*].country | string | Server country |
| params.servers[*].city | string | Server city |

Expand Down
8 changes: 4 additions & 4 deletions src/clientrpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 CInstPictures::GetTable).
/// @param {number} 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<CChannelInfo> vecChanInfo ) {
QJsonArray arrChanInfo;
Expand Down Expand Up @@ -103,7 +103,7 @@ CClientRpc::CClientRpc ( CClient* pClient, CRpcServer* pRpcServer, QObject* pare
/// @param {array} params.servers - The server list.
/// @param {string} params.servers[*].address - Socket address (ip_address:port)
/// @param {string} params.servers[*].name - Server name
/// @param {string} params.servers[*].countryId - Server country ID (see QLocale::Country).
/// @param {number} params.servers[*].countryId - Server country ID (see QLocale::Country).
/// @param {string} params.servers[*].country - Server country
/// @param {string} params.servers[*].city - Server city
connect ( pClient->getConnLessProtocol(),
Expand Down Expand Up @@ -245,11 +245,11 @@ CClientRpc::CClientRpc ( CClient* pClient, CRpcServer* pRpcServer, QObject* pare
/// @result {number} result.id - The channel ID.
/// @result {string} result.name - The musician’s name.
/// @result {string} result.skillLevel - The musician’s skill level (beginner, intermediate, expert, or null).
/// @result {string} result.countryId - The musician’s country ID (see QLocale::Country).
/// @result {number} 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 CInstPictures::GetTable).
/// @result {number} result.instrument - The musician’s instrument.
/// @result {string} 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 ) {
QJsonObject result{
Expand Down

0 comments on commit 6c6bfe2

Please sign in to comment.