Class StartStreaming.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.streaming.StartStreaming.Builder
-
- Enclosing class:
- StartStreaming
public static class StartStreaming.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 StartStreaming.Request
batchMessage()
Batch the message to the OBS Studio instance.Optional<StartStreaming.Stream>
getStream()
Special stream configuration.void
sendMessage(Consumer<StartStreaming.Response> consumer)
Send the message to the OBS Studio instance.void
setStream(StartStreaming.Stream stream)
Special stream configuration.-
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
-
getStream
public Optional<StartStreaming.Stream> getStream()
Special stream configuration. Note: these won't be saved to OBS' configuration.
-
setStream
public void setStream(StartStreaming.Stream stream)
Special stream configuration. Note: these won't be saved to OBS' configuration.
-
sendMessage
public void sendMessage(Consumer<StartStreaming.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public StartStreaming.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-