Class ReorderSceneItems.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.scenes.ReorderSceneItems.Builder
-
- Enclosing class:
- ReorderSceneItems
public static class ReorderSceneItems.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 ReorderSceneItems.Request
batchMessage()
Batch the message to the OBS Studio instance.List<ReorderSceneItems.Item>
getItems()
Ordered list of objects with name and/or id specified.Optional<String>
getScene()
Name of the scene to reorder (defaults to current).void
sendMessage(Consumer<ReorderSceneItems.Response> consumer)
Send the message to the OBS Studio instance.void
setItems(List<ReorderSceneItems.Item> items)
Ordered list of objects with name and/or id specified.void
setScene(String scene)
Name of the scene to reorder (defaults to current).-
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
-
setScene
public void setScene(String scene)
Name of the scene to reorder (defaults to current).
-
getItems
public List<ReorderSceneItems.Item> getItems()
Ordered list of objects with name and/or id specified. Id preferred due to uniqueness per scene
-
setItems
public void setItems(List<ReorderSceneItems.Item> items)
Ordered list of objects with name and/or id specified. Id preferred due to uniqueness per scene
-
sendMessage
public void sendMessage(Consumer<ReorderSceneItems.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public ReorderSceneItems.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-