Merge pull request #124 from haganbmj/patch-2

docs: HandleSetHeartbeat -> SetHeartbeat
This commit is contained in:
Stéphane L 2017-09-26 11:19:15 +02:00 committed by GitHub
commit 7251862ecf

View File

@ -306,7 +306,7 @@ void WSRequestHandler::HandleAuthenticate(WSRequestHandler* req) {
* @param {boolean} `enable` Starts/Stops emitting heartbeat messages * @param {boolean} `enable` Starts/Stops emitting heartbeat messages
* *
* @api requests * @api requests
* @name HandleSetHeartbeat * @name SetHeartbeat
* @category general * @category general
*/ */
void WSRequestHandler::HandleSetHeartbeat(WSRequestHandler* req) { void WSRequestHandler::HandleSetHeartbeat(WSRequestHandler* req) {
@ -326,16 +326,16 @@ void WSRequestHandler::HandleSetHeartbeat(WSRequestHandler* req) {
obs_data_release(response); obs_data_release(response);
} }
/** /**
* Switch to the specified scene. * Switch to the specified scene.
* *
* @param {String} `scene-name` Name of the scene to switch to. * @param {String} `scene-name` Name of the scene to switch to.
* *
* @api requests * @api requests
* @name SetCurrentScene * @name SetCurrentScene
* @category scenes * @category scenes
* @since 0.3 * @since 0.3
*/ */
void WSRequestHandler::HandleSetCurrentScene(WSRequestHandler* req) { void WSRequestHandler::HandleSetCurrentScene(WSRequestHandler* req) {
if (!req->hasField("scene-name")) { if (!req->hasField("scene-name")) {
req->SendErrorResponse("missing request parameters"); req->SendErrorResponse("missing request parameters");