Class GetSceneItemProperties.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sceneitems.GetSceneItemProperties.Builder
-
- Enclosing class:
- GetSceneItemProperties
public static class GetSceneItemProperties.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 GetSceneItemProperties.RequestbatchMessage()Batch the message to the OBS Studio instance.GetSceneItemProperties.ItemgetItem()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.voidsendMessage(Consumer<GetSceneItemProperties.Response> consumer)Send the message to the OBS Studio instance.voidsetItem(GetSceneItemProperties.Item item)Scene Item name (if this field is a string) or specification (if it is an object).voidsetSceneName(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 GetSceneItemProperties.Item getItem()
Scene Item name (if this field is a string) or specification (if it is an object).
-
setItem
public void setItem(GetSceneItemProperties.Item item)
Scene Item name (if this field is a string) or specification (if it is an object).
-
sendMessage
public void sendMessage(Consumer<GetSceneItemProperties.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public GetSceneItemProperties.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-