Class SetSceneTransitionOverride.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.scenes.SetSceneTransitionOverride.Builder
-
- Enclosing class:
- SetSceneTransitionOverride
public static class SetSceneTransitionOverride.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 SetSceneTransitionOverride.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getSceneName()
Name of the scene to switch to.Optional<Integer>
getTransitionDuration()
Duration in milliseconds of the transition if transition is not fixed.String
getTransitionName()
Name of the transition to use.void
sendMessage(Consumer<SetSceneTransitionOverride.Response> consumer)
Send the message to the OBS Studio instance.void
setSceneName(String sceneName)
Name of the scene to switch to.void
setTransitionDuration(int transitionDuration)
Duration in milliseconds of the transition if transition is not fixed.void
setTransitionName(String transitionName)
Name of the transition to use.-
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
-
getSceneName
public String getSceneName()
Name of the scene to switch to.
-
setSceneName
public void setSceneName(String sceneName)
Name of the scene to switch to.
-
getTransitionName
public String getTransitionName()
Name of the transition to use.
-
setTransitionName
public void setTransitionName(String transitionName)
Name of the transition to use.
-
getTransitionDuration
public Optional<Integer> getTransitionDuration()
Duration in milliseconds of the transition if transition is not fixed. Defaults to the current duration specified in the UI if there is no current override and this value is not given.
-
setTransitionDuration
public void setTransitionDuration(int transitionDuration)
Duration in milliseconds of the transition if transition is not fixed. Defaults to the current duration specified in the UI if there is no current override and this value is not given.
-
sendMessage
public void sendMessage(Consumer<SetSceneTransitionOverride.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetSceneTransitionOverride.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-