Drops dead code across services, models, utils and widgets, including the connection auth service, which had no implementer, and the Live TV DVR provisioning models, which had no caller. Tests that only covered deleted behaviour are removed or trimmed. No behaviour change.
30 lines
799 B
Dart
30 lines
799 B
Dart
import '../../media/media_source_info.dart';
|
|
import '../../media/media_version.dart';
|
|
|
|
/// Consolidated data model containing all information needed for video playback.
|
|
/// This model combines data from multiple Plex API endpoints to reduce redundant requests.
|
|
class PlexVideoPlaybackData {
|
|
final String? videoUrl;
|
|
|
|
final MediaSourceInfo? mediaInfo;
|
|
|
|
final List<MediaVersion> availableVersions;
|
|
|
|
final List<MediaMarker> markers;
|
|
|
|
final int selectedMediaIndex;
|
|
|
|
final int selectedPartIndex;
|
|
|
|
PlexVideoPlaybackData({
|
|
required this.videoUrl,
|
|
required this.mediaInfo,
|
|
required this.availableVersions,
|
|
this.markers = const [],
|
|
this.selectedMediaIndex = 0,
|
|
this.selectedPartIndex = 0,
|
|
});
|
|
|
|
bool get hasValidVideoUrl => videoUrl != null && videoUrl!.isNotEmpty;
|
|
}
|