mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-02-03 23:52:52 +00:00
26 lines
948 B
Dart
26 lines
948 B
Dart
import 'package:spotube/src/rust/api/plugin/models/auth.dart';
|
|
import 'package:spotube/src/rust/api/plugin/plugin.dart';
|
|
import 'package:spotube/src/rust/api/plugin/senders.dart';
|
|
|
|
class MetadataPlugin {
|
|
final SpotubePlugin plugin;
|
|
late final OpaqueSender sender;
|
|
|
|
MetadataPlugin({required this.sender, required this.plugin});
|
|
|
|
Stream<AuthEventObject> authState() => plugin.authState();
|
|
|
|
PluginAlbumSender get album => plugin.album;
|
|
PluginArtistSender get artist => plugin.artist;
|
|
PluginAudioSourceSender get audioSource => plugin.audioSource;
|
|
PluginAuthSender get auth => plugin.auth;
|
|
PluginBrowseSender get browse => plugin.browse;
|
|
PluginCoreSender get core => plugin.core;
|
|
PluginPlaylistSender get playlist => plugin.playlist;
|
|
PluginSearchSender get search => plugin.search;
|
|
PluginTrackSender get track => plugin.track;
|
|
PluginUserSender get user => plugin.user;
|
|
|
|
Future<void> close() => plugin.close(tx: sender);
|
|
}
|