Class SetSourceName.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sources.SetSourceName.Builder
-
- Enclosing class:
- SetSourceName
public static class SetSourceName.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 SetSourceName.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getNewName()
New source name.String
getSourceName()
Source name.void
sendMessage(Consumer<SetSourceName.Response> consumer)
Send the message to the OBS Studio instance.void
setNewName(String newName)
New source name.void
setSourceName(String sourceName)
Source name.-
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
-
getSourceName
public String getSourceName()
Source name.
-
setSourceName
public void setSourceName(String sourceName)
Source name.
-
getNewName
public String getNewName()
New source name.
-
setNewName
public void setNewName(String newName)
New source name.
-
sendMessage
public void sendMessage(Consumer<SetSourceName.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetSourceName.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-