requesthandler: Rename GetSceneItemSourceName to GetSceneItemSource

Not an API break, this was introduced just a few commits ago.
This commit is contained in:
tt2468 2024-01-18 19:33:28 -08:00
parent 4cf8de8382
commit e5aa4c2f69
3 changed files with 5 additions and 5 deletions

View File

@ -126,7 +126,7 @@ const std::unordered_map<std::string, RequestMethodHandler> RequestHandler::_han
{"GetSceneItemList", &RequestHandler::GetSceneItemList}, {"GetSceneItemList", &RequestHandler::GetSceneItemList},
{"GetGroupSceneItemList", &RequestHandler::GetGroupSceneItemList}, {"GetGroupSceneItemList", &RequestHandler::GetGroupSceneItemList},
{"GetSceneItemId", &RequestHandler::GetSceneItemId}, {"GetSceneItemId", &RequestHandler::GetSceneItemId},
{"GetSceneItemSourceName", &RequestHandler::GetSceneItemSourceName}, {"GetSceneItemSource", &RequestHandler::GetSceneItemSource},
{"CreateSceneItem", &RequestHandler::CreateSceneItem}, {"CreateSceneItem", &RequestHandler::CreateSceneItem},
{"RemoveSceneItem", &RequestHandler::RemoveSceneItem}, {"RemoveSceneItem", &RequestHandler::RemoveSceneItem},
{"DuplicateSceneItem", &RequestHandler::DuplicateSceneItem}, {"DuplicateSceneItem", &RequestHandler::DuplicateSceneItem},

View File

@ -145,7 +145,7 @@ private:
RequestResult GetSceneItemList(const Request &); RequestResult GetSceneItemList(const Request &);
RequestResult GetGroupSceneItemList(const Request &); RequestResult GetGroupSceneItemList(const Request &);
RequestResult GetSceneItemId(const Request &); RequestResult GetSceneItemId(const Request &);
RequestResult GetSceneItemSourceName(const Request &); RequestResult GetSceneItemSource(const Request &);
RequestResult CreateSceneItem(const Request &); RequestResult CreateSceneItem(const Request &);
RequestResult RemoveSceneItem(const Request &); RequestResult RemoveSceneItem(const Request &);
RequestResult DuplicateSceneItem(const Request &); RequestResult DuplicateSceneItem(const Request &);

View File

@ -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 ?sceneName | String | Name of the scene the item is in
* @requestField ?sceneUuid | String | UUID 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 sourceName | String | Name of the source associated with the scene item
* @responseField sourceUuid | String | UUID 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 * @complexity 3
* @rpcVersion -1 * @rpcVersion -1
* @initialVersion 5.4.0 * @initialVersion 5.4.0
* @api requests * @api requests
* @category scene items * @category scene items
*/ */
RequestResult RequestHandler::GetSceneItemSourceName(const Request &request) // TODO: Rename to `GetSceneItemSource` RequestResult RequestHandler::GetSceneItemSource(const Request &request)
{ {
RequestStatus::RequestStatus statusCode; RequestStatus::RequestStatus statusCode;
std::string comment; std::string comment;