RequestHandler: Add GetTransitionKindList

This commit is contained in:
tt2468 2021-12-22 16:28:12 -08:00
parent 2302fdd25f
commit e05be47847
3 changed files with 13 additions and 0 deletions

View File

@ -86,6 +86,9 @@ const std::map<std::string, RequestMethodHandler> RequestHandler::_handlerMap
{"GetInputPropertiesListPropertyItems", &RequestHandler::GetInputPropertiesListPropertyItems},
{"PressInputPropertiesButton", &RequestHandler::PressInputPropertiesButton},
// Transitions
{"GetTransitionKindList", &RequestHandler::GetTransitionKindList},
// Scene Items
{"GetSceneItemList", &RequestHandler::GetSceneItemList},
{"GetGroupSceneItemList", &RequestHandler::GetGroupSceneItemList},

View File

@ -108,6 +108,9 @@ class RequestHandler {
RequestResult GetInputPropertiesListPropertyItems(const Request&);
RequestResult PressInputPropertiesButton(const Request&);
// Transitions
RequestResult GetTransitionKindList(const Request&);
// Scene Items
RequestResult GetSceneItemList(const Request&);
RequestResult GetGroupSceneItemList(const Request&);

View File

@ -18,3 +18,10 @@ with this program. If not, see <https://www.gnu.org/licenses/>
*/
#include "RequestHandler.h"
RequestResult RequestHandler::GetTransitionKindList(const Request&)
{
json responseData;
responseData["transitionKinds"] = Utils::Obs::ArrayHelper::GetTransitionKindList();
return RequestResult::Success(responseData);
}