Class Authenticate.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.general.Authenticate.Builder
-
- Enclosing class:
- Authenticate
public static class Authenticate.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 Authenticate.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getAuth()
Response to the auth challenge (see "Authentication" for more information).void
sendMessage(Consumer<Authenticate.Response> consumer)
Send the message to the OBS Studio instance.void
setAuth(String auth)
Response to the auth challenge (see "Authentication" for more information).-
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
-
getAuth
public String getAuth()
Response to the auth challenge (see "Authentication" for more information).
-
setAuth
public void setAuth(String auth)
Response to the auth challenge (see "Authentication" for more information).
-
sendMessage
public void sendMessage(Consumer<Authenticate.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public Authenticate.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-