Class BroadcastCustomMessage.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.general.BroadcastCustomMessage.Builder
-
- Enclosing class:
- BroadcastCustomMessage
public static class BroadcastCustomMessage.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 BroadcastCustomMessage.Request
batchMessage()
Batch the message to the OBS Studio instance.Object
getData()
User-defined dataString
getRealm()
Identifier to be choosen by the clientvoid
sendMessage(Consumer<BroadcastCustomMessage.Response> consumer)
Send the message to the OBS Studio instance.void
setData(Object data)
User-defined datavoid
setRealm(String realm)
Identifier to be choosen by the client-
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
-
getRealm
public String getRealm()
Identifier to be choosen by the client
-
setRealm
public void setRealm(String realm)
Identifier to be choosen by the client
-
getData
public Object getData()
User-defined data
-
setData
public void setData(Object data)
User-defined data
-
sendMessage
public void sendMessage(Consumer<BroadcastCustomMessage.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public BroadcastCustomMessage.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-