enum

QBittorrent::Model::FilePriority

Inherits Enum < Comparable < Value < Object

File download priority int (TorrentFile#priority).

Values 2-5 are legacy/unused and therefore have no members; they decode to nil through Converter.

Constants

DoNotDownload = 0

Do not download (skip this file).

Normal = 1

Normal priority.

High = 6

High priority.

Maximal = 7

Maximal priority.

Constructors

new(pull : JSON::PullParser) : self

Strict decode: raises on an integer with no matching member.

Source

Instance methods

do_not_download?

Returns true if this enum value equals DoNotDownload

Source
high?

Returns true if this enum value equals High

Source
maximal?

Returns true if this enum value equals Maximal

Source
normal?

Returns true if this enum value equals Normal

Source
to_json(json : JSON::Builder) : Nil

Serializes to the documented integer value.

Source