Class SetCurrentScene.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.scenes.SetCurrentScene.Builder
-
- Enclosing class:
- SetCurrentScene
public static class SetCurrentScene.Builder extends BaseBuilder
-
-
Constructor Summary
Constructors Constructor Description Builder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetCurrentScene.RequestbatchMessage()Batch the message to the OBS Studio instance.StringgetSceneName()Name of the scene to switch to.voidsendMessage(Consumer<SetCurrentScene.Response> consumer)Send the message to the OBS Studio instance.voidsetSceneName(String sceneName)Name of the scene to switch to.-
Methods inherited from class nl.harm27.obs.websocket.api.base.BaseBuilder
batchMessage, getNewMessageId, sendMessage
-
-
-
-
Constructor Detail
-
Builder
public Builder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
-
Method Detail
-
getSceneName
public String getSceneName()
Name of the scene to switch to.
-
setSceneName
public void setSceneName(String sceneName)
Name of the scene to switch to.
-
sendMessage
public void sendMessage(Consumer<SetCurrentScene.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetCurrentScene.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-