struct
Obsctl::OBS::Protocol::Response
- Obsctl::OBS::Protocol::Response
- Struct
- Value
- Object
Overview
Parsed obs-websocket RequestResponse message with opcode 7.
Defined in:
obsctl/obs/protocol/response.crConstructors
Class Method Summary
-
.from_frame(frame : String) : self | Nil
Parses a raw JSON frame and returns nil when it is not a response.
Instance Method Summary
- #clone
- #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)
- #request_id : String
- #request_status : RequestStatus
- #request_type : String
- #response_data : JSON::Any | Nil
Constructor Detail
def self.new(request_type : String, request_id : String, request_status : RequestStatus, response_data : JSON::Any | Nil)
#
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.
Instance Method Detail
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)
#