Class TriggerHotkeyByName.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.general.TriggerHotkeyByName.Builder
-
- Enclosing class:
- TriggerHotkeyByName
public static class TriggerHotkeyByName.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 TriggerHotkeyByName.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getHotkeyName()
Unique name of the hotkey, as defined when registering the hotkey (e.g.void
sendMessage(Consumer<TriggerHotkeyByName.Response> consumer)
Send the message to the OBS Studio instance.void
setHotkeyName(String hotkeyName)
Unique name of the hotkey, as defined when registering the hotkey (e.g.-
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
-
getHotkeyName
public String getHotkeyName()
Unique name of the hotkey, as defined when registering the hotkey (e.g. "ReplayBuffer.Save")
-
setHotkeyName
public void setHotkeyName(String hotkeyName)
Unique name of the hotkey, as defined when registering the hotkey (e.g. "ReplayBuffer.Save")
-
sendMessage
public void sendMessage(Consumer<TriggerHotkeyByName.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public TriggerHotkeyByName.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-