Class DeleteSceneItem.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sceneitems.DeleteSceneItem.Builder
-
- Enclosing class:
- DeleteSceneItem
public static class DeleteSceneItem.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 DeleteSceneItem.Request
batchMessage()
Batch the message to the OBS Studio instance.DeleteSceneItem.Item
getItem()
Scene item to delete (required)Optional<String>
getScene()
Name of the scene the scene item belongs to.void
sendMessage(Consumer<DeleteSceneItem.Response> consumer)
Send the message to the OBS Studio instance.void
setItem(DeleteSceneItem.Item item)
Scene item to delete (required)void
setScene(String scene)
Name of the scene the scene item belongs 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
-
getScene
public Optional<String> getScene()
Name of the scene the scene item belongs to. Defaults to the current scene.
-
setScene
public void setScene(String scene)
Name of the scene the scene item belongs to. Defaults to the current scene.
-
getItem
public DeleteSceneItem.Item getItem()
Scene item to delete (required)
-
setItem
public void setItem(DeleteSceneItem.Item item)
Scene item to delete (required)
-
sendMessage
public void sendMessage(Consumer<DeleteSceneItem.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public DeleteSceneItem.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-