Class GetSourceSettings.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sources.GetSourceSettings.Builder
-
- Enclosing class:
- GetSourceSettings
public static class GetSourceSettings.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 GetSourceSettings.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getSourceName()
Source name.Optional<String>
getSourceType()
Type of the specified source.void
sendMessage(Consumer<GetSourceSettings.Response> consumer)
Send the message to the OBS Studio instance.void
setSourceName(String sourceName)
Source name.void
setSourceType(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 if you expect a specific settings schema.
-
setSourceType
public void setSourceType(String sourceType)
Type of the specified source. Useful for type-checking if you expect a specific settings schema.
-
sendMessage
public void sendMessage(Consumer<GetSourceSettings.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public GetSourceSettings.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-