Class SetSceneItemRender.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sceneitems.SetSceneItemRender.Builder
-
- Enclosing class:
- SetSceneItemRender
public static class SetSceneItemRender.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 SetSceneItemRender.RequestbatchMessage()Batch the message to the OBS Studio instance.Optional<Integer>getItem()Scene Item idOptional<String>getSceneName()Name of the scene the scene item belongs to.Optional<String>getSource()Scene Item name.booleanisRender()true = shown ; false = hiddenvoidsendMessage(Consumer<SetSceneItemRender.Response> consumer)Send the message to the OBS Studio instance.voidsetItem(int item)Scene Item idvoidsetRender(boolean render)true = shown ; false = hiddenvoidsetSceneName(String sceneName)Name of the scene the scene item belongs to.voidsetSource(String source)Scene Item name.-
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 the scene item belongs to. Defaults to the currently active scene.
-
setSceneName
public void setSceneName(String sceneName)
Name of the scene the scene item belongs to. Defaults to the currently active scene.
-
setSource
public void setSource(String source)
Scene Item name.
-
setItem
public void setItem(int item)
Scene Item id
-
isRender
public boolean isRender()
true = shown ; false = hidden
-
setRender
public void setRender(boolean render)
true = shown ; false = hidden
-
sendMessage
public void sendMessage(Consumer<SetSceneItemRender.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetSceneItemRender.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-