Class SetCurrentProfile.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.profiles.SetCurrentProfile.Builder
-
- Enclosing class:
- SetCurrentProfile
public static class SetCurrentProfile.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 SetCurrentProfile.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getProfileName()
Name of the desired profile.void
sendMessage(Consumer<SetCurrentProfile.Response> consumer)
Send the message to the OBS Studio instance.void
setProfileName(String profileName)
Name of the desired profile.-
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
-
getProfileName
public String getProfileName()
Name of the desired profile.
-
setProfileName
public void setProfileName(String profileName)
Name of the desired profile.
-
sendMessage
public void sendMessage(Consumer<SetCurrentProfile.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetCurrentProfile.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-