2019-08-29 15:33:52 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2020-02-01 02:03:48 +01:00
|
|
|
<class name="JSONRPC" inherits="Object" version="4.0">
|
2019-08-29 15:33:52 +02:00
|
|
|
<brief_description>
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="make_notification">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="Dictionary" />
|
|
|
|
<argument index="0" name="method" type="String" />
|
|
|
|
<argument index="1" name="params" type="Variant" />
|
2019-08-29 15:33:52 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="make_request">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="Dictionary" />
|
|
|
|
<argument index="0" name="method" type="String" />
|
|
|
|
<argument index="1" name="params" type="Variant" />
|
|
|
|
<argument index="2" name="id" type="Variant" />
|
2019-08-29 15:33:52 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="make_response">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="Dictionary" />
|
|
|
|
<argument index="0" name="result" type="Variant" />
|
|
|
|
<argument index="1" name="id" type="Variant" />
|
2019-08-29 15:33:52 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="make_response_error" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="Dictionary" />
|
|
|
|
<argument index="0" name="code" type="int" />
|
|
|
|
<argument index="1" name="message" type="String" />
|
|
|
|
<argument index="2" name="id" type="Variant" default="null" />
|
2019-08-29 15:33:52 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="process_action">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="Variant" />
|
|
|
|
<argument index="0" name="action" type="Variant" />
|
|
|
|
<argument index="1" name="recurse" type="bool" default="false" />
|
2019-08-29 15:33:52 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="process_string">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="String" />
|
|
|
|
<argument index="0" name="action" type="String" />
|
2019-08-29 15:33:52 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_scope">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="scope" type="String" />
|
|
|
|
<argument index="1" name="target" type="Object" />
|
2019-08-29 15:33:52 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<constants>
|
2019-09-24 11:44:48 +02:00
|
|
|
<constant name="PARSE_ERROR" value="-32700" enum="ErrorCode">
|
2019-08-29 15:33:52 +02:00
|
|
|
</constant>
|
2019-09-24 11:44:48 +02:00
|
|
|
<constant name="INVALID_REQUEST" value="-32600" enum="ErrorCode">
|
2019-08-29 15:33:52 +02:00
|
|
|
</constant>
|
2019-09-24 11:44:48 +02:00
|
|
|
<constant name="METHOD_NOT_FOUND" value="-32601" enum="ErrorCode">
|
2019-08-29 15:33:52 +02:00
|
|
|
</constant>
|
2019-09-24 11:44:48 +02:00
|
|
|
<constant name="INVALID_PARAMS" value="-32602" enum="ErrorCode">
|
2019-08-29 15:33:52 +02:00
|
|
|
</constant>
|
2019-09-24 11:44:48 +02:00
|
|
|
<constant name="INTERNAL_ERROR" value="-32603" enum="ErrorCode">
|
2019-08-29 15:33:52 +02:00
|
|
|
</constant>
|
|
|
|
</constants>
|
|
|
|
</class>
|