Class SetSourceSettings.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sources.SetSourceSettings.Builder
-
- Enclosing class:
- SetSourceSettings
public static class SetSourceSettings.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 SetSourceSettings.RequestbatchMessage()Batch the message to the OBS Studio instance.StringgetSourceName()Source name.ObjectgetSourceSettings()Source settings (varies between source types, may require some probing around).Optional<String>getSourceType()Type of the specified source.voidsendMessage(Consumer<SetSourceSettings.Response> consumer)Send the message to the OBS Studio instance.voidsetSourceName(String sourceName)Source name.voidsetSourceSettings(Object sourceSettings)Source settings (varies between source types, may require some probing around).voidsetSourceType(String sourceType)Type of the specified source.-
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.
-
getSourceType
public Optional<String> getSourceType()
Type of the specified source. Useful for type-checking to avoid settings a set of settings incompatible with the actual source's type.
-
setSourceType
public void setSourceType(String sourceType)
Type of the specified source. Useful for type-checking to avoid settings a set of settings incompatible with the actual source's type.
-
getSourceSettings
public Object getSourceSettings()
Source settings (varies between source types, may require some probing around).
-
setSourceSettings
public void setSourceSettings(Object sourceSettings)
Source settings (varies between source types, may require some probing around).
-
sendMessage
public void sendMessage(Consumer<SetSourceSettings.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetSourceSettings.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-