Class SetTransitionDuration.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.transitions.SetTransitionDuration.Builder
-
- Enclosing class:
- SetTransitionDuration
public static class SetTransitionDuration.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 SetTransitionDuration.Request
batchMessage()
Batch the message to the OBS Studio instance.int
getDuration()
Desired duration of the transition (in milliseconds).void
sendMessage(Consumer<SetTransitionDuration.Response> consumer)
Send the message to the OBS Studio instance.void
setDuration(int duration)
Desired duration of the transition (in milliseconds).-
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
-
getDuration
public int getDuration()
Desired duration of the transition (in milliseconds).
-
setDuration
public void setDuration(int duration)
Desired duration of the transition (in milliseconds).
-
sendMessage
public void sendMessage(Consumer<SetTransitionDuration.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetTransitionDuration.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-