Skip to content

Commit

Permalink
requesthandler: Rename GetSceneItemSourceName to GetSceneItemSource
Browse files Browse the repository at this point in the history
Not an API break, this was introduced just a few commits ago.
  • Loading branch information
tt2468 committed Jan 19, 2024
1 parent 4cf8de8 commit e5aa4c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/requesthandler/RequestHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const std::unordered_map<std::string, RequestMethodHandler> 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},
Expand Down
2 changes: 1 addition & 1 deletion src/requesthandler/RequestHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class RequestHandler {
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 &);
Expand Down
6 changes: 3 additions & 3 deletions src/requesthandler/RequestHandler_SceneItems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit e5aa4c2

Please sign in to comment.