DaapClient class
DAAP client.
Constructors
- DaapClient(String host, {int port = 3689, String? password})
- DAAP client constructor.
Properties
- connection → Client?
-
Shared HTTP connection getter.
no setter
- contentCodes ↔ DaapObject?
-
Content codes data.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Get custom HTTP headers.
no setter
- host ↔ String
-
Host to connect to.
getter/setter pair
- port ↔ int
-
Port to use.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverInfo ↔ DaapObject?
-
Server info data.
getter/setter pair
- sessionInfo ↔ DaapObject?
-
Session info data.
getter/setter pair
Methods
-
connect(
) → Future< void> - Connect to DAAP server.
-
getContentCodes(
) → Future< DaapObject> - Get server content codes.
-
getDatabase(
int databaseId, {int? sessionId, List< String> metaCodes = databaseQueryDefaultMetaCodes}) → Future<DaapObject> - Get database from the server.
-
getDatabases(
{int? sessionId}) → Future< DaapObject> - Get databases from the server.
-
getPlaylist(
int databaseId, int playlistId, {int? sessionId, List< String> metaCodes = playlistQueryDefaultMetaCodes}) → Future<DaapObject> - Get database playlist from the server.
-
getPlaylists(
int databaseId, {int? sessionId, List< String> metaCodes = playlistsQueryDefaultMetaCodes}) → Future<DaapObject> - Get database playlists from the server.
-
getRequestMeta(
List< String> metaCodes) → String - Create request meta key value from DMAP codes list.
-
getServerInfo(
) → Future< DaapObject> - Get server info.
-
getSong(
int databaseId, int songId, String songFormat, {int? sessionId}) → Future< Uint8List> - Get song from the server.
-
getSongArtwork(
int databaseId, int songId, {int? sessionId}) → Future< Uint8List> - Get song artwork from the server.
-
login(
) → Future< DaapObject> - Login to the server.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
request(
Uri url) → Future< Uint8List> - Make a GET HTTP request to DAAP server.
-
toString(
) → String -
Creates client class string representation.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited