Class SetHeartbeat.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.general.SetHeartbeat.Builder
-
- Enclosing class:
- SetHeartbeat
public static class SetHeartbeat.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 SetHeartbeat.Request
batchMessage()
Batch the message to the OBS Studio instance.boolean
isEnable()
Starts/Stops emitting heartbeat messagesvoid
sendMessage(Consumer<SetHeartbeat.Response> consumer)
Send the message to the OBS Studio instance.void
setEnable(boolean enable)
Starts/Stops emitting heartbeat messages-
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
-
isEnable
public boolean isEnable()
Starts/Stops emitting heartbeat messages
-
setEnable
public void setEnable(boolean enable)
Starts/Stops emitting heartbeat messages
-
sendMessage
public void sendMessage(Consumer<SetHeartbeat.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetHeartbeat.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-