docs: Remove note on how to access core attributes
The corresponding methods are now fully documented and the old attributes are deprecated.
This commit is contained in:
parent
622a3c5494
commit
f96a22e5cb
@ -62,14 +62,9 @@ JSON-RPC 2.0 messages can be recognized by checking for the key named
|
||||
please refer to the `JSON-RPC 2.0 spec
|
||||
<http://www.jsonrpc.org/specification>`_.
|
||||
|
||||
All methods (not attributes) in the :ref:`core-api` is made available through
|
||||
JSON-RPC calls over the WebSocket. For example,
|
||||
:meth:`mopidy.core.PlaybackController.play` is available as the JSON-RPC method
|
||||
``core.playback.play``.
|
||||
|
||||
The core API's attributes is made available through setters and getters. For
|
||||
example, the attribute :attr:`mopidy.core.PlaybackController.current_track` is
|
||||
available as the JSON-RPC method ``core.playback.get_current_track``.
|
||||
All methods in the :ref:`core-api` is made available through JSON-RPC calls
|
||||
over the WebSocket. For example, :meth:`mopidy.core.PlaybackController.play` is
|
||||
available as the JSON-RPC method ``core.playback.play``.
|
||||
|
||||
Example JSON-RPC request::
|
||||
|
||||
|
||||
@ -189,13 +189,10 @@ you've hooked up an errback (more on that a bit later) to the promise returned
|
||||
from the call, the errback will be called with a ``Mopidy.ConnectionError``
|
||||
instance.
|
||||
|
||||
All methods in Mopidy's :ref:`core-api` is available via Mopidy.js. The core
|
||||
API attributes is *not* available, but that shouldn't be a problem as we've
|
||||
added (undocumented) getters and setters for all of them, so you can access the
|
||||
attributes as well from JavaScript. For example, the
|
||||
:attr:`mopidy.core.PlaybackController.state` attribute is available in
|
||||
JSON-RPC as the method ``core.playback.get_state`` and in Mopidy.js as
|
||||
``mopidy.playback.getState()``.
|
||||
All methods in Mopidy's :ref:`core-api` is available via Mopidy.js. For
|
||||
example, the :meth:`mopidy.core.PlaybackController.get_state` method is
|
||||
available in JSON-RPC as the method ``core.playback.get_state`` and in
|
||||
Mopidy.js as ``mopidy.playback.getState()``.
|
||||
|
||||
Both the WebSocket API and the JavaScript API are based on introspection of the
|
||||
core Python API. Thus, they will always be up to date and immediately reflect
|
||||
|
||||
Loading…
Reference in New Issue
Block a user