Class SetMediaTime.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.mediacontrol.SetMediaTime.Builder
-
- Enclosing class:
- SetMediaTime
public static class SetMediaTime.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 SetMediaTime.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getSourceName()
Source name.int
getTimestamp()
Milliseconds to set the timestamp to.void
sendMessage(Consumer<SetMediaTime.Response> consumer)
Send the message to the OBS Studio instance.void
setSourceName(String sourceName)
Source name.void
setTimestamp(int timestamp)
Milliseconds to set the timestamp 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
-
getSourceName
public String getSourceName()
Source name.
-
setSourceName
public void setSourceName(String sourceName)
Source name.
-
getTimestamp
public int getTimestamp()
Milliseconds to set the timestamp to.
-
setTimestamp
public void setTimestamp(int timestamp)
Milliseconds to set the timestamp to.
-
sendMessage
public void sendMessage(Consumer<SetMediaTime.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetMediaTime.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-