QBittorrent::Model::MainData
Inherits JSON::Serializable::Unmapped < JSON::Serializable < Struct < Value < Object
The sync/maindata response (see ext/api-map.md §2.3 / §3): a snapshot of
everything the WebUI needs, delivered as an incremental delta.
The client feeds the rid of the previous response into the next request;
the server then returns only what changed. full_update: true marks a
complete payload (typically the first call, rid = 0); otherwise each
collection carries only added/changed entries and a matching *_removed
array lists the keys/names dropped since the last response id.
Consequently every field is nilable — an absent collection means
"unchanged", not "empty" — and JSON::Serializable::Unmapped preserves
any keys not modelled here. The torrents values reuse TorrentInfo
(already fully nilable, so partial deltas decode cleanly) and categories
reuses Category.
Constructors
Instance methods
Added/changed torrents keyed by hash. On a delta each value is a partial
TorrentInfo carrying only the fields that changed.