Class SendCaptions.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.streaming.SendCaptions.Builder
-
- Enclosing class:
- SendCaptions
public static class SendCaptions.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 SendCaptions.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getText()
Captions textvoid
sendMessage(Consumer<SendCaptions.Response> consumer)
Send the message to the OBS Studio instance.void
setText(String text)
Captions text-
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
-
getText
public String getText()
Captions text
-
setText
public void setText(String text)
Captions text
-
sendMessage
public void sendMessage(Consumer<SendCaptions.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SendCaptions.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-