Class SetSceneItemPosition.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sceneitems.SetSceneItemPosition.Builder
-
- Enclosing class:
- SetSceneItemPosition
public static class SetSceneItemPosition.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 SetSceneItemPosition.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getItem()
Scene Item name.Optional<String>
getSceneName()
Name of the scene the scene item belongs to.double
getX()
X coordinate.double
getY()
Y coordinate.void
sendMessage(Consumer<SetSceneItemPosition.Response> consumer)
Send the message to the OBS Studio instance.void
setItem(String item)
Scene Item name.void
setSceneName(String sceneName)
Name of the scene the scene item belongs to.void
setX(double x)
X coordinate.void
setY(double y)
Y coordinate.-
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.
-
getX
public double getX()
X coordinate.
-
setX
public void setX(double x)
X coordinate.
-
getY
public double getY()
Y coordinate.
-
setY
public void setY(double y)
Y coordinate.
-
sendMessage
public void sendMessage(Consumer<SetSceneItemPosition.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetSceneItemPosition.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-