Package nl.harm27.obs.websocket.api.base
Class BaseBuilder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- Direct Known Subclasses:
AddFilterToSource.Builder
,AddSceneItem.Builder
,Authenticate.Builder
,BroadcastCustomMessage.Builder
,CreateScene.Builder
,CreateSource.Builder
,DeleteSceneItem.Builder
,DisableStudioMode.Builder
,DuplicateSceneItem.Builder
,EnableStudioMode.Builder
,ExecuteBatch.Builder
,GetAudioActive.Builder
,GetAudioMonitorType.Builder
,GetAudioTracks.Builder
,GetAuthRequired.Builder
,GetBrowserSourceProperties.Builder
,GetCurrentProfile.Builder
,GetCurrentScene.Builder
,GetCurrentSceneCollection.Builder
,GetCurrentTransition.Builder
,GetFilenameFormatting.Builder
,GetMediaDuration.Builder
,GetMediaSourcesList.Builder
,GetMediaState.Builder
,GetMediaTime.Builder
,GetMute.Builder
,GetOutputInfo.Builder
,GetPreviewScene.Builder
,GetRecordingFolder.Builder
,GetRecordingStatus.Builder
,GetReplayBufferStatus.Builder
,GetSceneItemList.Builder
,GetSceneItemProperties.Builder
,GetSceneList.Builder
,GetSceneTransitionOverride.Builder
,GetSourceActive.Builder
,GetSourceDefaultSettings.Builder
,GetSourceFilterInfo.Builder
,GetSourceFilters.Builder
,GetSourceSettings.Builder
,GetSourcesList.Builder
,GetSourceTypesList.Builder
,GetSpecialSources.Builder
,GetStats.Builder
,GetStreamingStatus.Builder
,GetStreamSettings.Builder
,GetStudioModeStatus.Builder
,GetSyncOffset.Builder
,GetTextFreetype2Properties.Builder
,GetTextGDIPlusProperties.Builder
,GetTransitionDuration.Builder
,GetTransitionList.Builder
,GetTransitionPosition.Builder
,GetTransitionSettings.Builder
,GetVersion.Builder
,GetVideoInfo.Builder
,GetVirtualCamStatus.Builder
,GetVolume.Builder
,ListOutputs.Builder
,ListProfiles.Builder
,ListSceneCollections.Builder
,MoveSourceFilter.Builder
,NextMedia.Builder
,OpenProjector.Builder
,PauseRecording.Builder
,PlayPauseMedia.Builder
,PreviousMedia.Builder
,RefreshBrowserSource.Builder
,ReleaseTBar.Builder
,RemoveFilterFromSource.Builder
,RemoveSceneTransitionOverride.Builder
,ReorderSceneItems.Builder
,ReorderSourceFilter.Builder
,ResetSceneItem.Builder
,RestartMedia.Builder
,ResumeRecording.Builder
,SaveReplayBuffer.Builder
,SaveStreamSettings.Builder
,ScrubMedia.Builder
,SendCaptions.Builder
,SetAudioMonitorType.Builder
,SetAudioTracks.Builder
,SetBrowserSourceProperties.Builder
,SetCurrentProfile.Builder
,SetCurrentScene.Builder
,SetCurrentSceneCollection.Builder
,SetCurrentTransition.Builder
,SetFilenameFormatting.Builder
,SetHeartbeat.Builder
,SetMediaTime.Builder
,SetMute.Builder
,SetPreviewScene.Builder
,SetRecordingFolder.Builder
,SetSceneItemCrop.Builder
,SetSceneItemPosition.Builder
,SetSceneItemProperties.Builder
,SetSceneItemRender.Builder
,SetSceneItemTransform.Builder
,SetSceneTransitionOverride.Builder
,SetSourceFilterSettings.Builder
,SetSourceFilterVisibility.Builder
,SetSourceName.Builder
,SetSourceSettings.Builder
,SetStreamSettings.Builder
,SetSyncOffset.Builder
,SetTBarPosition.Builder
,SetTextFreetype2Properties.Builder
,SetTextGDIPlusProperties.Builder
,SetTransitionDuration.Builder
,SetTransitionSettings.Builder
,SetVolume.Builder
,Sleep.Builder
,StartOutput.Builder
,StartRecording.Builder
,StartReplayBuffer.Builder
,StartStopRecording.Builder
,StartStopReplayBuffer.Builder
,StartStopStreaming.Builder
,StartStopVirtualCam.Builder
,StartStreaming.Builder
,StartVirtualCam.Builder
,StopMedia.Builder
,StopOutput.Builder
,StopRecording.Builder
,StopReplayBuffer.Builder
,StopStreaming.Builder
,StopVirtualCam.Builder
,TakeSourceScreenshot.Builder
,ToggleMute.Builder
,ToggleStudioMode.Builder
,TransitionToProgram.Builder
,TriggerHotkeyByName.Builder
,TriggerHotkeyBySequence.Builder
public abstract class BaseBuilder extends Object
Builders helps creating new requests.- See Also:
- OBS WebSocket Documentation
-
-
Constructor Summary
Constructors Constructor Description BaseBuilder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
batchMessage(BaseRequest request)
protected String
getNewMessageId()
protected void
sendMessage(BaseRequest request, Consumer<BaseResponse> responseConsumer)
-
-
-
Constructor Detail
-
BaseBuilder
public BaseBuilder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
-
Method Detail
-
getNewMessageId
protected String getNewMessageId()
-
sendMessage
protected void sendMessage(BaseRequest request, Consumer<BaseResponse> responseConsumer)
-
batchMessage
protected void batchMessage(BaseRequest request)
-
-