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.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getSceneName()
Scene to add the new source to.String
getSourceKind()
Source kind, Eg.String
getSourceName()
Source name.Optional<Object>
getSourceSettings()
Source settings data.Optional<Boolean>
isSetVisible()
Set the created SceneItem as visible or not.void
sendMessage(Consumer<CreateSource.Response> consumer)
Send the message to the OBS Studio instance.void
setSceneName(String sceneName)
Scene to add the new source to.void
setSetVisible(boolean setVisible)
Set the created SceneItem as visible or not.void
setSourceKind(String sourceKind)
Source kind, Eg.void
setSourceName(String sourceName)
Source name.void
setSourceSettings(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.
-
-