Class TriggerHotkeyBySequence.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.general.TriggerHotkeyBySequence.Builder
-
- Enclosing class:
- TriggerHotkeyBySequence
public static class TriggerHotkeyBySequence.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 TriggerHotkeyBySequence.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getKeyId()
Main key identifier (e.g.Optional<TriggerHotkeyBySequence.KeyModifiers>
getKeyModifiers()
Optional key modifiers object.void
sendMessage(Consumer<TriggerHotkeyBySequence.Response> consumer)
Send the message to the OBS Studio instance.void
setKeyId(String keyId)
Main key identifier (e.g.void
setKeyModifiers(TriggerHotkeyBySequence.KeyModifiers keyModifiers)
Optional key modifiers object.-
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
-
getKeyId
public String getKeyId()
Main key identifier (e.g. `OBS_KEY_A` for key "A"). Available identifiers [here](https://github.com/obsproject/obs-studio/blob/master/libobs/obs-hotkeys.h)
-
setKeyId
public void setKeyId(String keyId)
Main key identifier (e.g. `OBS_KEY_A` for key "A"). Available identifiers [here](https://github.com/obsproject/obs-studio/blob/master/libobs/obs-hotkeys.h)
-
getKeyModifiers
public Optional<TriggerHotkeyBySequence.KeyModifiers> getKeyModifiers()
Optional key modifiers object. False entries can be ommitted
-
setKeyModifiers
public void setKeyModifiers(TriggerHotkeyBySequence.KeyModifiers keyModifiers)
Optional key modifiers object. False entries can be ommitted
-
sendMessage
public void sendMessage(Consumer<TriggerHotkeyBySequence.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public TriggerHotkeyBySequence.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-