Class ResetSceneItem.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sceneitems.ResetSceneItem.Builder
-
- Enclosing class:
- ResetSceneItem
public static class ResetSceneItem.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 ResetSceneItem.Request
batchMessage()
Batch the message to the OBS Studio instance.ResetSceneItem.Item
getItem()
Scene Item name (if this field is a string) or specification (if it is an object).Optional<String>
getSceneName()
Name of the scene the scene item belongs to.void
sendMessage(Consumer<ResetSceneItem.Response> consumer)
Send the message to the OBS Studio instance.void
setItem(ResetSceneItem.Item item)
Scene Item name (if this field is a string) or specification (if it is an object).void
setSceneName(String sceneName)
Name of the scene the scene item belongs to.-
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 ResetSceneItem.Item getItem()
Scene Item name (if this field is a string) or specification (if it is an object).
-
setItem
public void setItem(ResetSceneItem.Item item)
Scene Item name (if this field is a string) or specification (if it is an object).
-
sendMessage
public void sendMessage(Consumer<ResetSceneItem.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public ResetSceneItem.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-