Class SetPreviewScene.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.studiomode.SetPreviewScene.Builder
-
- Enclosing class:
- SetPreviewScene
public static class SetPreviewScene.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 SetPreviewScene.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getSceneName()
The name of the scene to preview.void
sendMessage(Consumer<SetPreviewScene.Response> consumer)
Send the message to the OBS Studio instance.void
setSceneName(String sceneName)
The name of the scene to preview.-
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()
The name of the scene to preview.
-
setSceneName
public void setSceneName(String sceneName)
The name of the scene to preview.
-
sendMessage
public void sendMessage(Consumer<SetPreviewScene.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetPreviewScene.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-