From e5aa4c2f692083ad9cfc1aea0667b9c5e0e26c36 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Thu, 18 Jan 2024 19:33:28 -0800 Subject: [PATCH] requesthandler: Rename `GetSceneItemSourceName` to `GetSceneItemSource` Not an API break, this was introduced just a few commits ago. --- src/requesthandler/RequestHandler.cpp | 2 +- src/requesthandler/RequestHandler.h | 2 +- src/requesthandler/RequestHandler_SceneItems.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/requesthandler/RequestHandler.cpp b/src/requesthandler/RequestHandler.cpp index 9de89965..a5be2d78 100644 --- a/src/requesthandler/RequestHandler.cpp +++ b/src/requesthandler/RequestHandler.cpp @@ -126,7 +126,7 @@ const std::unordered_map RequestHandler::_han {"GetSceneItemList", &RequestHandler::GetSceneItemList}, {"GetGroupSceneItemList", &RequestHandler::GetGroupSceneItemList}, {"GetSceneItemId", &RequestHandler::GetSceneItemId}, - {"GetSceneItemSourceName", &RequestHandler::GetSceneItemSourceName}, + {"GetSceneItemSource", &RequestHandler::GetSceneItemSource}, {"CreateSceneItem", &RequestHandler::CreateSceneItem}, {"RemoveSceneItem", &RequestHandler::RemoveSceneItem}, {"DuplicateSceneItem", &RequestHandler::DuplicateSceneItem}, diff --git a/src/requesthandler/RequestHandler.h b/src/requesthandler/RequestHandler.h index 0b814cc2..610fb465 100644 --- a/src/requesthandler/RequestHandler.h +++ b/src/requesthandler/RequestHandler.h @@ -145,7 +145,7 @@ private: RequestResult GetSceneItemList(const Request &); RequestResult GetGroupSceneItemList(const Request &); RequestResult GetSceneItemId(const Request &); - RequestResult GetSceneItemSourceName(const Request &); + RequestResult GetSceneItemSource(const Request &); RequestResult CreateSceneItem(const Request &); RequestResult RemoveSceneItem(const Request &); RequestResult DuplicateSceneItem(const Request &); diff --git a/src/requesthandler/RequestHandler_SceneItems.cpp b/src/requesthandler/RequestHandler_SceneItems.cpp index e8dbded3..ea70ca7b 100644 --- a/src/requesthandler/RequestHandler_SceneItems.cpp +++ b/src/requesthandler/RequestHandler_SceneItems.cpp @@ -132,7 +132,7 @@ RequestResult RequestHandler::GetSceneItemId(const Request &request) } /** - * Gets the source name of a scene item. + * Gets the source associated with a scene item. * * @requestField ?sceneName | String | Name of the scene the item is in * @requestField ?sceneUuid | String | UUID of the scene the item is in @@ -141,14 +141,14 @@ RequestResult RequestHandler::GetSceneItemId(const Request &request) * @responseField sourceName | String | Name of the source associated with the scene item * @responseField sourceUuid | String | UUID of the source associated with the scene item * - * @requestType GetSceneItemSourceName + * @requestType GetSceneItemSource * @complexity 3 * @rpcVersion -1 * @initialVersion 5.4.0 * @api requests * @category scene items */ -RequestResult RequestHandler::GetSceneItemSourceName(const Request &request) // TODO: Rename to `GetSceneItemSource` +RequestResult RequestHandler::GetSceneItemSource(const Request &request) { RequestStatus::RequestStatus statusCode; std::string comment;