Class: OBS::WebSocket::Protocol::Response

Inherits:
ServerMessage show all
Defined in:
lib/obs/websocket.rb

Direct Known Subclasses

OBS::WebSocket::Protocol::Responses::AddFilterToSource, OBS::WebSocket::Protocol::Responses::AddSceneItem, OBS::WebSocket::Protocol::Responses::Authenticate, OBS::WebSocket::Protocol::Responses::BroadcastCustomMessage, OBS::WebSocket::Protocol::Responses::CreateScene, OBS::WebSocket::Protocol::Responses::CreateSource, OBS::WebSocket::Protocol::Responses::DeleteSceneItem, OBS::WebSocket::Protocol::Responses::DisableStudioMode, OBS::WebSocket::Protocol::Responses::DuplicateSceneItem, OBS::WebSocket::Protocol::Responses::EnableStudioMode, OBS::WebSocket::Protocol::Responses::ExecuteBatch, OBS::WebSocket::Protocol::Responses::GetAudioActive, OBS::WebSocket::Protocol::Responses::GetAudioMonitorType, OBS::WebSocket::Protocol::Responses::GetAuthRequired, OBS::WebSocket::Protocol::Responses::GetBrowserSourceProperties, OBS::WebSocket::Protocol::Responses::GetCurrentProfile, OBS::WebSocket::Protocol::Responses::GetCurrentScene, OBS::WebSocket::Protocol::Responses::GetCurrentSceneCollection, OBS::WebSocket::Protocol::Responses::GetCurrentTransition, OBS::WebSocket::Protocol::Responses::GetFilenameFormatting, OBS::WebSocket::Protocol::Responses::GetMediaDuration, OBS::WebSocket::Protocol::Responses::GetMediaSourcesList, OBS::WebSocket::Protocol::Responses::GetMediaState, OBS::WebSocket::Protocol::Responses::GetMediaTime, OBS::WebSocket::Protocol::Responses::GetMute, OBS::WebSocket::Protocol::Responses::GetOutputInfo, OBS::WebSocket::Protocol::Responses::GetPreviewScene, OBS::WebSocket::Protocol::Responses::GetRecordingFolder, OBS::WebSocket::Protocol::Responses::GetRecordingStatus, OBS::WebSocket::Protocol::Responses::GetReplayBufferStatus, OBS::WebSocket::Protocol::Responses::GetSceneItemList, OBS::WebSocket::Protocol::Responses::GetSceneItemProperties, OBS::WebSocket::Protocol::Responses::GetSceneList, OBS::WebSocket::Protocol::Responses::GetSceneTransitionOverride, OBS::WebSocket::Protocol::Responses::GetSourceActive, OBS::WebSocket::Protocol::Responses::GetSourceDefaultSettings, OBS::WebSocket::Protocol::Responses::GetSourceFilterInfo, OBS::WebSocket::Protocol::Responses::GetSourceFilters, OBS::WebSocket::Protocol::Responses::GetSourceSettings, OBS::WebSocket::Protocol::Responses::GetSourceTypesList, OBS::WebSocket::Protocol::Responses::GetSourcesList, OBS::WebSocket::Protocol::Responses::GetSpecialSources, OBS::WebSocket::Protocol::Responses::GetStats, OBS::WebSocket::Protocol::Responses::GetStreamSettings, OBS::WebSocket::Protocol::Responses::GetStreamingStatus, OBS::WebSocket::Protocol::Responses::GetStudioModeStatus, OBS::WebSocket::Protocol::Responses::GetSyncOffset, OBS::WebSocket::Protocol::Responses::GetTextFreetype2Properties, OBS::WebSocket::Protocol::Responses::GetTextGDIPlusProperties, OBS::WebSocket::Protocol::Responses::GetTracks, OBS::WebSocket::Protocol::Responses::GetTransitionDuration, OBS::WebSocket::Protocol::Responses::GetTransitionList, OBS::WebSocket::Protocol::Responses::GetTransitionPosition, OBS::WebSocket::Protocol::Responses::GetTransitionSettings, OBS::WebSocket::Protocol::Responses::GetVersion, OBS::WebSocket::Protocol::Responses::GetVideoInfo, OBS::WebSocket::Protocol::Responses::GetVirtualCamStatus, OBS::WebSocket::Protocol::Responses::GetVolume, OBS::WebSocket::Protocol::Responses::ListOutputs, OBS::WebSocket::Protocol::Responses::ListProfiles, OBS::WebSocket::Protocol::Responses::ListSceneCollections, OBS::WebSocket::Protocol::Responses::MoveSourceFilter, OBS::WebSocket::Protocol::Responses::NextMedia, OBS::WebSocket::Protocol::Responses::OpenProjector, OBS::WebSocket::Protocol::Responses::PauseRecording, OBS::WebSocket::Protocol::Responses::PlayPauseMedia, OBS::WebSocket::Protocol::Responses::PreviousMedia, OBS::WebSocket::Protocol::Responses::RefreshBrowserSource, OBS::WebSocket::Protocol::Responses::ReleaseTBar, OBS::WebSocket::Protocol::Responses::RemoveFilterFromSource, OBS::WebSocket::Protocol::Responses::RemoveSceneTransitionOverride, OBS::WebSocket::Protocol::Responses::ReorderSceneItems, OBS::WebSocket::Protocol::Responses::ReorderSourceFilter, OBS::WebSocket::Protocol::Responses::ResetSceneItem, OBS::WebSocket::Protocol::Responses::RestartMedia, OBS::WebSocket::Protocol::Responses::ResumeRecording, OBS::WebSocket::Protocol::Responses::SaveReplayBuffer, OBS::WebSocket::Protocol::Responses::SaveStreamSettings, OBS::WebSocket::Protocol::Responses::ScrubMedia, OBS::WebSocket::Protocol::Responses::SendCaptions, OBS::WebSocket::Protocol::Responses::SetAudioMonitorType, OBS::WebSocket::Protocol::Responses::SetBrowserSourceProperties, OBS::WebSocket::Protocol::Responses::SetCurrentProfile, OBS::WebSocket::Protocol::Responses::SetCurrentScene, OBS::WebSocket::Protocol::Responses::SetCurrentSceneCollection, OBS::WebSocket::Protocol::Responses::SetCurrentTransition, OBS::WebSocket::Protocol::Responses::SetFilenameFormatting, OBS::WebSocket::Protocol::Responses::SetHeartbeat, OBS::WebSocket::Protocol::Responses::SetMediaTime, OBS::WebSocket::Protocol::Responses::SetMute, OBS::WebSocket::Protocol::Responses::SetPreviewScene, OBS::WebSocket::Protocol::Responses::SetRecordingFolder, OBS::WebSocket::Protocol::Responses::SetSceneItemCrop, OBS::WebSocket::Protocol::Responses::SetSceneItemPosition, OBS::WebSocket::Protocol::Responses::SetSceneItemProperties, OBS::WebSocket::Protocol::Responses::SetSceneItemRender, OBS::WebSocket::Protocol::Responses::SetSceneItemTransform, OBS::WebSocket::Protocol::Responses::SetSceneTransitionOverride, OBS::WebSocket::Protocol::Responses::SetSourceFilterSettings, OBS::WebSocket::Protocol::Responses::SetSourceFilterVisibility, OBS::WebSocket::Protocol::Responses::SetSourceName, OBS::WebSocket::Protocol::Responses::SetSourceSettings, OBS::WebSocket::Protocol::Responses::SetStreamSettings, OBS::WebSocket::Protocol::Responses::SetSyncOffset, OBS::WebSocket::Protocol::Responses::SetTBarPosition, OBS::WebSocket::Protocol::Responses::SetTextFreetype2Properties, OBS::WebSocket::Protocol::Responses::SetTextGDIPlusProperties, OBS::WebSocket::Protocol::Responses::SetTracks, OBS::WebSocket::Protocol::Responses::SetTransitionDuration, OBS::WebSocket::Protocol::Responses::SetTransitionSettings, OBS::WebSocket::Protocol::Responses::SetVolume, OBS::WebSocket::Protocol::Responses::Sleep, OBS::WebSocket::Protocol::Responses::StartOutput, OBS::WebSocket::Protocol::Responses::StartRecording, OBS::WebSocket::Protocol::Responses::StartReplayBuffer, OBS::WebSocket::Protocol::Responses::StartStopRecording, OBS::WebSocket::Protocol::Responses::StartStopReplayBuffer, OBS::WebSocket::Protocol::Responses::StartStopStreaming, OBS::WebSocket::Protocol::Responses::StartStopVirtualCam, OBS::WebSocket::Protocol::Responses::StartStreaming, OBS::WebSocket::Protocol::Responses::StartVirtualCam, OBS::WebSocket::Protocol::Responses::StopMedia, OBS::WebSocket::Protocol::Responses::StopOutput, OBS::WebSocket::Protocol::Responses::StopRecording, OBS::WebSocket::Protocol::Responses::StopReplayBuffer, OBS::WebSocket::Protocol::Responses::StopStreaming, OBS::WebSocket::Protocol::Responses::StopVirtualCam, OBS::WebSocket::Protocol::Responses::TakeSourceScreenshot, OBS::WebSocket::Protocol::Responses::ToggleMute, OBS::WebSocket::Protocol::Responses::ToggleStudioMode, OBS::WebSocket::Protocol::Responses::TransitionToProgram, OBS::WebSocket::Protocol::Responses::TriggerHotkeyByName, OBS::WebSocket::Protocol::Responses::TriggerHotkeyBySequence

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Response

Returns a new instance of Response.



424
425
426
# File 'lib/obs/websocket.rb', line 424

def initialize(json)
  @json = json
end

Instance Method Details

#to_hObject



428
429
430
# File 'lib/obs/websocket.rb', line 428

def to_h
  @json
end