Class CreateSource.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sources.CreateSource.Builder
-
- Enclosing class:
- CreateSource
public static class CreateSource.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 CreateSource.RequestbatchMessage()Batch the message to the OBS Studio instance.StringgetSceneName()Scene to add the new source to.StringgetSourceKind()Source kind, Eg.StringgetSourceName()Source name.Optional<Object>getSourceSettings()Source settings data.Optional<Boolean>isSetVisible()Set the created SceneItem as visible or not.voidsendMessage(Consumer<CreateSource.Response> consumer)Send the message to the OBS Studio instance.voidsetSceneName(String sceneName)Scene to add the new source to.voidsetSetVisible(boolean setVisible)Set the created SceneItem as visible or not.voidsetSourceKind(String sourceKind)Source kind, Eg.voidsetSourceName(String sourceName)Source name.voidsetSourceSettings(Object sourceSettings)Source settings data.-
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
-
getSourceName
public String getSourceName()
Source name.
-
setSourceName
public void setSourceName(String sourceName)
Source name.
-
getSourceKind
public String getSourceKind()
Source kind, Eg. `vlc_source`.
-
setSourceKind
public void setSourceKind(String sourceKind)
Source kind, Eg. `vlc_source`.
-
getSceneName
public String getSceneName()
Scene to add the new source to.
-
setSceneName
public void setSceneName(String sceneName)
Scene to add the new source to.
-
setSourceSettings
public void setSourceSettings(Object sourceSettings)
Source settings data.
-
isSetVisible
public Optional<Boolean> isSetVisible()
Set the created SceneItem as visible or not. Defaults to true
-
setSetVisible
public void setSetVisible(boolean setVisible)
Set the created SceneItem as visible or not. Defaults to true
-
sendMessage
public void sendMessage(Consumer<CreateSource.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public CreateSource.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-