Class AddSceneItem.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sceneitems.AddSceneItem.Builder
-
- Enclosing class:
- AddSceneItem
public static class AddSceneItem.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 AddSceneItem.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getSceneName()
Name of the scene to create the scene item inString
getSourceName()
Name of the source to be addedOptional<Boolean>
isSetVisible()
Whether to make the sceneitem visible on creation or not.void
sendMessage(Consumer<AddSceneItem.Response> consumer)
Send the message to the OBS Studio instance.void
setSceneName(String sceneName)
Name of the scene to create the scene item invoid
setSetVisible(boolean setVisible)
Whether to make the sceneitem visible on creation or not.void
setSourceName(String sourceName)
Name of the source to be added-
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 String getSceneName()
Name of the scene to create the scene item in
-
setSceneName
public void setSceneName(String sceneName)
Name of the scene to create the scene item in
-
getSourceName
public String getSourceName()
Name of the source to be added
-
setSourceName
public void setSourceName(String sourceName)
Name of the source to be added
-
isSetVisible
public Optional<Boolean> isSetVisible()
Whether to make the sceneitem visible on creation or not. Default `true`
-
setSetVisible
public void setSetVisible(boolean setVisible)
Whether to make the sceneitem visible on creation or not. Default `true`
-
sendMessage
public void sendMessage(Consumer<AddSceneItem.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public AddSceneItem.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-