Sonarr class
The core class to handle all connections to Sonarr. Gives you easy access to all implemented command handlers, initialized and ready to call.
Sonarr handles the creation of the initial Dio
HTTP client & command handlers.
You can optionally use the factory .from()
to define your own Dio
HTTP client.
Constructors
-
Sonarr({required String host, required String apiKey, Map<
String, dynamic> ? headers, bool followRedirects = true, int maxRedirects = 5}) -
Create a new Sonarr API connection manager to connection to your instance.
This default factory/constructor will create the
Dio
HTTP client for you given the parameters.factory - Sonarr.from({required Dio client})
-
Create a new Sonarr API connection manager to connection to your instance.
factory
Properties
- calendar → SonarrCommandHandler_Calendar
-
Command handler for all calendar-related API calls.
final
- command → SonarrCommandHandler_Command
-
Command handler for all command-related API calls.
final
- episode → SonarrCommandHandler_Episode
-
Command handler for all episode-related API calls.
final
- episodeFile → SonarrCommandHandler_EpisodeFile
-
Command handler for all episode file-related API calls.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- history → SonarrCommandHandler_History
-
Command handler for all history-related API calls.
final
- httpClient → Dio
-
The
Dio
HTTP client built during initialization.final - profile → SonarrCommandHandler_Profile
-
Command handler for all profile-related API calls.
final
- queue → SonarrCommandHandler_Queue
-
Command handler for all queue-related API calls.
final
- release → SonarrCommandHandler_Release
-
Command handler for all release-related API calls.
final
- rootFolder → SonarrCommandHandler_RootFolder
-
Command handler for all series lookup-related API calls.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- series → SonarrCommandHandler_Series
-
Command handler for all series-related API calls.
final
- seriesLookup → SonarrCommandHandler_SeriesLookup
-
Command handler for all series lookup-related API calls.
final
- system → SonarrCommandHandler_System
-
Command handler for all system-related API calls.
final
- tag → SonarrCommandHandler_Tag
-
Command handler for all tag-related API calls.
final
- wanted → SonarrCommandHandler_Wanted
-
Command handler for all wanted/missing-related API calls.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited