Class SetSceneItemTransform.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sceneitems.SetSceneItemTransform.Builder
-
- Enclosing class:
- SetSceneItemTransform
public static class SetSceneItemTransform.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 SetSceneItemTransform.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getItem()
Scene Item name.double
getRotation()
Source item rotation (in degrees).Optional<String>
getSceneName()
Name of the scene the scene item belongs to.double
getXScale()
Width scale factor.double
getYScale()
Height scale factor.void
sendMessage(Consumer<SetSceneItemTransform.Response> consumer)
Send the message to the OBS Studio instance.void
setItem(String item)
Scene Item name.void
setRotation(double rotation)
Source item rotation (in degrees).void
setSceneName(String sceneName)
Name of the scene the scene item belongs to.void
setXScale(double xScale)
Width scale factor.void
setYScale(double yScale)
Height scale factor.-
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 Optional<String> getSceneName()
Name of the scene the scene item belongs to. Defaults to the current scene.
-
setSceneName
public void setSceneName(String sceneName)
Name of the scene the scene item belongs to. Defaults to the current scene.
-
getItem
public String getItem()
Scene Item name.
-
setItem
public void setItem(String item)
Scene Item name.
-
getXScale
public double getXScale()
Width scale factor.
-
setXScale
public void setXScale(double xScale)
Width scale factor.
-
getYScale
public double getYScale()
Height scale factor.
-
setYScale
public void setYScale(double yScale)
Height scale factor.
-
getRotation
public double getRotation()
Source item rotation (in degrees).
-
setRotation
public void setRotation(double rotation)
Source item rotation (in degrees).
-
sendMessage
public void sendMessage(Consumer<SetSceneItemTransform.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetSceneItemTransform.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-