Class DuplicateSceneItem.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sceneitems.DuplicateSceneItem.Builder
-
- Enclosing class:
- DuplicateSceneItem
public static class DuplicateSceneItem.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 DuplicateSceneItem.Request
batchMessage()
Batch the message to the OBS Studio instance.Optional<String>
getFromScene()
Name of the scene to copy the item from.DuplicateSceneItem.Item
getItem()
Scene Item to duplicate from the source scene (required)Optional<String>
getToScene()
Name of the scene to create the item in.void
sendMessage(Consumer<DuplicateSceneItem.Response> consumer)
Send the message to the OBS Studio instance.void
setFromScene(String fromScene)
Name of the scene to copy the item from.void
setItem(DuplicateSceneItem.Item item)
Scene Item to duplicate from the source scene (required)void
setToScene(String toScene)
Name of the scene to create the item in.-
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
-
getFromScene
public Optional<String> getFromScene()
Name of the scene to copy the item from. Defaults to the current scene.
-
setFromScene
public void setFromScene(String fromScene)
Name of the scene to copy the item from. Defaults to the current scene.
-
getToScene
public Optional<String> getToScene()
Name of the scene to create the item in. Defaults to the current scene.
-
setToScene
public void setToScene(String toScene)
Name of the scene to create the item in. Defaults to the current scene.
-
getItem
public DuplicateSceneItem.Item getItem()
Scene Item to duplicate from the source scene (required)
-
setItem
public void setItem(DuplicateSceneItem.Item item)
Scene Item to duplicate from the source scene (required)
-
sendMessage
public void sendMessage(Consumer<DuplicateSceneItem.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public DuplicateSceneItem.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-