Class GetSceneItemList.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sceneitems.GetSceneItemList.Builder
-
- Enclosing class:
- GetSceneItemList
public static class GetSceneItemList.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 GetSceneItemList.Request
batchMessage()
Batch the message to the OBS Studio instance.Optional<String>
getSceneName()
Name of the scene to get the list of scene items from.void
sendMessage(Consumer<GetSceneItemList.Response> consumer)
Send the message to the OBS Studio instance.void
setSceneName(String sceneName)
Name of the scene to get the list of scene items from.-
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 Optional<String> getSceneName()
Name of the scene to get the list of scene items from. Defaults to the current scene if not specified.
-
setSceneName
public void setSceneName(String sceneName)
Name of the scene to get the list of scene items from. Defaults to the current scene if not specified.
-
sendMessage
public void sendMessage(Consumer<GetSceneItemList.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public GetSceneItemList.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-