Class ExecuteBatch.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.general.ExecuteBatch.Builder
-
- Enclosing class:
- ExecuteBatch
public static class ExecuteBatch.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 ExecuteBatch.Request
batchMessage()
Batch the message to the OBS Studio instance.List<BaseRequest>
getRequests()
Array of requests to perform.void
sendMessage(Consumer<ExecuteBatch.Response> consumer)
Send the message to the OBS Studio instance.void
setRequests(List<BaseRequest> requests)
Array of requests to perform.-
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
-
getRequests
public List<BaseRequest> getRequests()
Array of requests to perform. Executed in order.
-
setRequests
public void setRequests(List<BaseRequest> requests)
Array of requests to perform. Executed in order.
-
sendMessage
public void sendMessage(Consumer<ExecuteBatch.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public ExecuteBatch.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-