struct Obsctl::OBS::Protocol::Response

Overview

Parsed obs-websocket RequestResponse message with opcode 7.

Defined in:

obsctl/obs/protocol/response.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(request_type : String, request_id : String, request_status : RequestStatus, response_data : JSON::Any | Nil) #

[View source]

Class Method Detail

def self.from_frame(frame : String) : self | Nil #

Parses a raw JSON frame and returns nil when it is not a response.


[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(request_type _request_type = @request_type, request_id _request_id = @request_id, request_status _request_status = @request_status, response_data _response_data = @response_data) #

[View source]
def request_id : String #

def request_status : RequestStatus #

def request_type : String #

def response_data : JSON::Any | Nil #