diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index b731f830..4cda54be 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -17,6 +17,10 @@
+
+
+
+
diff --git a/ios/Podfile.lock b/ios/Podfile.lock
index 4804c94b..15e44fbf 100644
--- a/ios/Podfile.lock
+++ b/ios/Podfile.lock
@@ -1,4 +1,6 @@
PODS:
+ - background_downloader (0.0.1):
+ - Flutter
- connectivity_plus (0.0.1):
- Flutter
- device_info_plus (0.0.1):
@@ -105,6 +107,7 @@ PODS:
- Flutter
DEPENDENCIES:
+ - background_downloader (from `.symlinks/plugins/background_downloader/ios`)
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
- file_picker (from `.symlinks/plugins/file_picker/ios`)
@@ -138,6 +141,8 @@ SPEC REPOS:
- sqlite3
EXTERNAL SOURCES:
+ background_downloader:
+ :path: ".symlinks/plugins/background_downloader/ios"
connectivity_plus:
:path: ".symlinks/plugins/connectivity_plus/ios"
device_info_plus:
@@ -172,6 +177,7 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/workmanager_apple/ios"
SPEC CHECKSUMS:
+ background_downloader: 50e91d979067b82081aba359d7d916b3ba5fadad
connectivity_plus: cb623214f4e1f6ef8fe7403d580fdad517d2f7dd
device_info_plus: 21fcca2080fbcd348be798aa36c3e5ed849eefbe
file_picker: 8fc6fe5e42585a217d44d22f79ec046cb8d81140
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 5278ba84..a3b398c7 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -49,6 +49,11 @@
LaunchScreen
UIMainStoryboardFile
Main
+ UIBackgroundModes
+
+ fetch
+ processing
+
UISupportedInterfaceOrientations
UIInterfaceOrientationPortrait
diff --git a/lib/database/app_database.dart b/lib/database/app_database.dart
index 9bcbe0d6..ed635ff1 100644
--- a/lib/database/app_database.dart
+++ b/lib/database/app_database.dart
@@ -16,7 +16,7 @@ class AppDatabase extends _$AppDatabase {
AppDatabase() : super(_openConnection());
@override
- int get schemaVersion => 7; // Added OfflineWatchProgress table
+ int get schemaVersion => 8; // Added bgTaskId column to DownloadedMedia
@override
MigrationStrategy get migration {
@@ -25,11 +25,14 @@ class AppDatabase extends _$AppDatabase {
await m.createAll();
},
onUpgrade: (Migrator m, int from, int to) async {
- // Additive migration for schema version 7
if (from < 7) {
appLogger.i('Adding OfflineWatchProgress table (v7 migration)');
await m.createTable(offlineWatchProgress);
}
+ if (from < 8) {
+ appLogger.i('Adding bgTaskId column to DownloadedMedia (v8 migration)');
+ await m.addColumn(downloadedMedia, downloadedMedia.bgTaskId);
+ }
},
);
}
diff --git a/lib/database/app_database.g.dart b/lib/database/app_database.g.dart
index 6844c0e6..28e81134 100644
--- a/lib/database/app_database.g.dart
+++ b/lib/database/app_database.g.dart
@@ -3,7 +3,8 @@
part of 'app_database.dart';
// ignore_for_file: type=lint
-class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMediaTable, DownloadedMediaItem> {
+class $DownloadedMediaTable extends DownloadedMedia
+ with TableInfo<$DownloadedMediaTable, DownloadedMediaItem> {
@override
final GeneratedDatabase attachedDatabase;
final String? _alias;
@@ -17,9 +18,13 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
hasAutoIncrement: true,
type: DriftSqlType.int,
requiredDuringInsert: false,
- defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT'),
+ defaultConstraints: GeneratedColumn.constraintIsAlways(
+ 'PRIMARY KEY AUTOINCREMENT',
+ ),
+ );
+ static const VerificationMeta _serverIdMeta = const VerificationMeta(
+ 'serverId',
);
- static const VerificationMeta _serverIdMeta = const VerificationMeta('serverId');
@override
late final GeneratedColumn serverId = GeneratedColumn(
'server_id',
@@ -28,7 +33,9 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
type: DriftSqlType.string,
requiredDuringInsert: true,
);
- static const VerificationMeta _ratingKeyMeta = const VerificationMeta('ratingKey');
+ static const VerificationMeta _ratingKeyMeta = const VerificationMeta(
+ 'ratingKey',
+ );
@override
late final GeneratedColumn ratingKey = GeneratedColumn(
'rating_key',
@@ -37,7 +44,9 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
type: DriftSqlType.string,
requiredDuringInsert: true,
);
- static const VerificationMeta _globalKeyMeta = const VerificationMeta('globalKey');
+ static const VerificationMeta _globalKeyMeta = const VerificationMeta(
+ 'globalKey',
+ );
@override
late final GeneratedColumn globalKey = GeneratedColumn(
'global_key',
@@ -56,7 +65,9 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
type: DriftSqlType.string,
requiredDuringInsert: true,
);
- static const VerificationMeta _parentRatingKeyMeta = const VerificationMeta('parentRatingKey');
+ static const VerificationMeta _parentRatingKeyMeta = const VerificationMeta(
+ 'parentRatingKey',
+ );
@override
late final GeneratedColumn parentRatingKey = GeneratedColumn(
'parent_rating_key',
@@ -65,15 +76,17 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
type: DriftSqlType.string,
requiredDuringInsert: false,
);
- static const VerificationMeta _grandparentRatingKeyMeta = const VerificationMeta('grandparentRatingKey');
+ static const VerificationMeta _grandparentRatingKeyMeta =
+ const VerificationMeta('grandparentRatingKey');
@override
- late final GeneratedColumn grandparentRatingKey = GeneratedColumn(
- 'grandparent_rating_key',
- aliasedName,
- true,
- type: DriftSqlType.string,
- requiredDuringInsert: false,
- );
+ late final GeneratedColumn grandparentRatingKey =
+ GeneratedColumn(
+ 'grandparent_rating_key',
+ aliasedName,
+ true,
+ type: DriftSqlType.string,
+ requiredDuringInsert: false,
+ );
static const VerificationMeta _statusMeta = const VerificationMeta('status');
@override
late final GeneratedColumn status = GeneratedColumn(
@@ -83,7 +96,9 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
type: DriftSqlType.int,
requiredDuringInsert: true,
);
- static const VerificationMeta _progressMeta = const VerificationMeta('progress');
+ static const VerificationMeta _progressMeta = const VerificationMeta(
+ 'progress',
+ );
@override
late final GeneratedColumn progress = GeneratedColumn(
'progress',
@@ -93,7 +108,9 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
requiredDuringInsert: false,
defaultValue: const Constant(0),
);
- static const VerificationMeta _totalBytesMeta = const VerificationMeta('totalBytes');
+ static const VerificationMeta _totalBytesMeta = const VerificationMeta(
+ 'totalBytes',
+ );
@override
late final GeneratedColumn totalBytes = GeneratedColumn(
'total_bytes',
@@ -102,7 +119,9 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
type: DriftSqlType.int,
requiredDuringInsert: false,
);
- static const VerificationMeta _downloadedBytesMeta = const VerificationMeta('downloadedBytes');
+ static const VerificationMeta _downloadedBytesMeta = const VerificationMeta(
+ 'downloadedBytes',
+ );
@override
late final GeneratedColumn downloadedBytes = GeneratedColumn(
'downloaded_bytes',
@@ -112,7 +131,9 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
requiredDuringInsert: false,
defaultValue: const Constant(0),
);
- static const VerificationMeta _videoFilePathMeta = const VerificationMeta('videoFilePath');
+ static const VerificationMeta _videoFilePathMeta = const VerificationMeta(
+ 'videoFilePath',
+ );
@override
late final GeneratedColumn videoFilePath = GeneratedColumn(
'video_file_path',
@@ -121,7 +142,9 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
type: DriftSqlType.string,
requiredDuringInsert: false,
);
- static const VerificationMeta _thumbPathMeta = const VerificationMeta('thumbPath');
+ static const VerificationMeta _thumbPathMeta = const VerificationMeta(
+ 'thumbPath',
+ );
@override
late final GeneratedColumn thumbPath = GeneratedColumn(
'thumb_path',
@@ -130,7 +153,9 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
type: DriftSqlType.string,
requiredDuringInsert: false,
);
- static const VerificationMeta _downloadedAtMeta = const VerificationMeta('downloadedAt');
+ static const VerificationMeta _downloadedAtMeta = const VerificationMeta(
+ 'downloadedAt',
+ );
@override
late final GeneratedColumn downloadedAt = GeneratedColumn(
'downloaded_at',
@@ -139,7 +164,9 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
type: DriftSqlType.int,
requiredDuringInsert: false,
);
- static const VerificationMeta _errorMessageMeta = const VerificationMeta('errorMessage');
+ static const VerificationMeta _errorMessageMeta = const VerificationMeta(
+ 'errorMessage',
+ );
@override
late final GeneratedColumn errorMessage = GeneratedColumn(
'error_message',
@@ -148,7 +175,9 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
type: DriftSqlType.string,
requiredDuringInsert: false,
);
- static const VerificationMeta _retryCountMeta = const VerificationMeta('retryCount');
+ static const VerificationMeta _retryCountMeta = const VerificationMeta(
+ 'retryCount',
+ );
@override
late final GeneratedColumn retryCount = GeneratedColumn(
'retry_count',
@@ -158,6 +187,17 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
requiredDuringInsert: false,
defaultValue: const Constant(0),
);
+ static const VerificationMeta _bgTaskIdMeta = const VerificationMeta(
+ 'bgTaskId',
+ );
+ @override
+ late final GeneratedColumn bgTaskId = GeneratedColumn(
+ 'bg_task_id',
+ aliasedName,
+ true,
+ type: DriftSqlType.string,
+ requiredDuringInsert: false,
+ );
@override
List get $columns => [
id,
@@ -176,6 +216,7 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
downloadedAt,
errorMessage,
retryCount,
+ bgTaskId,
];
@override
String get aliasedName => _alias ?? actualTableName;
@@ -183,78 +224,138 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
String get actualTableName => $name;
static const String $name = 'downloaded_media';
@override
- VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) {
+ VerificationContext validateIntegrity(
+ Insertable instance, {
+ bool isInserting = false,
+ }) {
final context = VerificationContext();
final data = instance.toColumns(true);
if (data.containsKey('id')) {
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
}
if (data.containsKey('server_id')) {
- context.handle(_serverIdMeta, serverId.isAcceptableOrUnknown(data['server_id']!, _serverIdMeta));
+ context.handle(
+ _serverIdMeta,
+ serverId.isAcceptableOrUnknown(data['server_id']!, _serverIdMeta),
+ );
} else if (isInserting) {
context.missing(_serverIdMeta);
}
if (data.containsKey('rating_key')) {
- context.handle(_ratingKeyMeta, ratingKey.isAcceptableOrUnknown(data['rating_key']!, _ratingKeyMeta));
+ context.handle(
+ _ratingKeyMeta,
+ ratingKey.isAcceptableOrUnknown(data['rating_key']!, _ratingKeyMeta),
+ );
} else if (isInserting) {
context.missing(_ratingKeyMeta);
}
if (data.containsKey('global_key')) {
- context.handle(_globalKeyMeta, globalKey.isAcceptableOrUnknown(data['global_key']!, _globalKeyMeta));
+ context.handle(
+ _globalKeyMeta,
+ globalKey.isAcceptableOrUnknown(data['global_key']!, _globalKeyMeta),
+ );
} else if (isInserting) {
context.missing(_globalKeyMeta);
}
if (data.containsKey('type')) {
- context.handle(_typeMeta, type.isAcceptableOrUnknown(data['type']!, _typeMeta));
+ context.handle(
+ _typeMeta,
+ type.isAcceptableOrUnknown(data['type']!, _typeMeta),
+ );
} else if (isInserting) {
context.missing(_typeMeta);
}
if (data.containsKey('parent_rating_key')) {
context.handle(
_parentRatingKeyMeta,
- parentRatingKey.isAcceptableOrUnknown(data['parent_rating_key']!, _parentRatingKeyMeta),
+ parentRatingKey.isAcceptableOrUnknown(
+ data['parent_rating_key']!,
+ _parentRatingKeyMeta,
+ ),
);
}
if (data.containsKey('grandparent_rating_key')) {
context.handle(
_grandparentRatingKeyMeta,
- grandparentRatingKey.isAcceptableOrUnknown(data['grandparent_rating_key']!, _grandparentRatingKeyMeta),
+ grandparentRatingKey.isAcceptableOrUnknown(
+ data['grandparent_rating_key']!,
+ _grandparentRatingKeyMeta,
+ ),
);
}
if (data.containsKey('status')) {
- context.handle(_statusMeta, status.isAcceptableOrUnknown(data['status']!, _statusMeta));
+ context.handle(
+ _statusMeta,
+ status.isAcceptableOrUnknown(data['status']!, _statusMeta),
+ );
} else if (isInserting) {
context.missing(_statusMeta);
}
if (data.containsKey('progress')) {
- context.handle(_progressMeta, progress.isAcceptableOrUnknown(data['progress']!, _progressMeta));
+ context.handle(
+ _progressMeta,
+ progress.isAcceptableOrUnknown(data['progress']!, _progressMeta),
+ );
}
if (data.containsKey('total_bytes')) {
- context.handle(_totalBytesMeta, totalBytes.isAcceptableOrUnknown(data['total_bytes']!, _totalBytesMeta));
+ context.handle(
+ _totalBytesMeta,
+ totalBytes.isAcceptableOrUnknown(data['total_bytes']!, _totalBytesMeta),
+ );
}
if (data.containsKey('downloaded_bytes')) {
context.handle(
_downloadedBytesMeta,
- downloadedBytes.isAcceptableOrUnknown(data['downloaded_bytes']!, _downloadedBytesMeta),
+ downloadedBytes.isAcceptableOrUnknown(
+ data['downloaded_bytes']!,
+ _downloadedBytesMeta,
+ ),
);
}
if (data.containsKey('video_file_path')) {
context.handle(
_videoFilePathMeta,
- videoFilePath.isAcceptableOrUnknown(data['video_file_path']!, _videoFilePathMeta),
+ videoFilePath.isAcceptableOrUnknown(
+ data['video_file_path']!,
+ _videoFilePathMeta,
+ ),
);
}
if (data.containsKey('thumb_path')) {
- context.handle(_thumbPathMeta, thumbPath.isAcceptableOrUnknown(data['thumb_path']!, _thumbPathMeta));
+ context.handle(
+ _thumbPathMeta,
+ thumbPath.isAcceptableOrUnknown(data['thumb_path']!, _thumbPathMeta),
+ );
}
if (data.containsKey('downloaded_at')) {
- context.handle(_downloadedAtMeta, downloadedAt.isAcceptableOrUnknown(data['downloaded_at']!, _downloadedAtMeta));
+ context.handle(
+ _downloadedAtMeta,
+ downloadedAt.isAcceptableOrUnknown(
+ data['downloaded_at']!,
+ _downloadedAtMeta,
+ ),
+ );
}
if (data.containsKey('error_message')) {
- context.handle(_errorMessageMeta, errorMessage.isAcceptableOrUnknown(data['error_message']!, _errorMessageMeta));
+ context.handle(
+ _errorMessageMeta,
+ errorMessage.isAcceptableOrUnknown(
+ data['error_message']!,
+ _errorMessageMeta,
+ ),
+ );
}
if (data.containsKey('retry_count')) {
- context.handle(_retryCountMeta, retryCount.isAcceptableOrUnknown(data['retry_count']!, _retryCountMeta));
+ context.handle(
+ _retryCountMeta,
+ retryCount.isAcceptableOrUnknown(data['retry_count']!, _retryCountMeta),
+ );
+ }
+ if (data.containsKey('bg_task_id')) {
+ context.handle(
+ _bgTaskIdMeta,
+ bgTaskId.isAcceptableOrUnknown(data['bg_task_id']!, _bgTaskIdMeta),
+ );
}
return context;
}
@@ -265,11 +366,26 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
DownloadedMediaItem map(Map data, {String? tablePrefix}) {
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
return DownloadedMediaItem(
- id: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}id'])!,
- serverId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}server_id'])!,
- ratingKey: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}rating_key'])!,
- globalKey: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}global_key'])!,
- type: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}type'])!,
+ id: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}id'],
+ )!,
+ serverId: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}server_id'],
+ )!,
+ ratingKey: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}rating_key'],
+ )!,
+ globalKey: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}global_key'],
+ )!,
+ type: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}type'],
+ )!,
parentRatingKey: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}parent_rating_key'],
@@ -278,15 +394,46 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
DriftSqlType.string,
data['${effectivePrefix}grandparent_rating_key'],
),
- status: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}status'])!,
- progress: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}progress'])!,
- totalBytes: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}total_bytes']),
- downloadedBytes: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}downloaded_bytes'])!,
- videoFilePath: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}video_file_path']),
- thumbPath: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}thumb_path']),
- downloadedAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}downloaded_at']),
- errorMessage: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}error_message']),
- retryCount: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}retry_count'])!,
+ status: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}status'],
+ )!,
+ progress: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}progress'],
+ )!,
+ totalBytes: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}total_bytes'],
+ ),
+ downloadedBytes: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}downloaded_bytes'],
+ )!,
+ videoFilePath: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}video_file_path'],
+ ),
+ thumbPath: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}thumb_path'],
+ ),
+ downloadedAt: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}downloaded_at'],
+ ),
+ errorMessage: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}error_message'],
+ ),
+ retryCount: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}retry_count'],
+ )!,
+ bgTaskId: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}bg_task_id'],
+ ),
);
}
@@ -296,7 +443,8 @@ class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMe
}
}
-class DownloadedMediaItem extends DataClass implements Insertable {
+class DownloadedMediaItem extends DataClass
+ implements Insertable {
final int id;
final String serverId;
final String ratingKey;
@@ -313,6 +461,7 @@ class DownloadedMediaItem extends DataClass implements Insertable toColumns(bool nullToAbsent) {
@@ -364,6 +514,9 @@ class DownloadedMediaItem extends DataClass implements Insertable(errorMessage);
}
map['retry_count'] = Variable(retryCount);
+ if (!nullToAbsent || bgTaskId != null) {
+ map['bg_task_id'] = Variable(bgTaskId);
+ }
return map;
}
@@ -374,23 +527,41 @@ class DownloadedMediaItem extends DataClass implements Insertable json, {ValueSerializer? serializer}) {
+ factory DownloadedMediaItem.fromJson(
+ Map json, {
+ ValueSerializer? serializer,
+ }) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return DownloadedMediaItem(
id: serializer.fromJson(json['id']),
@@ -399,7 +570,9 @@ class DownloadedMediaItem extends DataClass implements Insertable(json['globalKey']),
type: serializer.fromJson(json['type']),
parentRatingKey: serializer.fromJson(json['parentRatingKey']),
- grandparentRatingKey: serializer.fromJson(json['grandparentRatingKey']),
+ grandparentRatingKey: serializer.fromJson(
+ json['grandparentRatingKey'],
+ ),
status: serializer.fromJson(json['status']),
progress: serializer.fromJson(json['progress']),
totalBytes: serializer.fromJson(json['totalBytes']),
@@ -409,6 +582,7 @@ class DownloadedMediaItem extends DataClass implements Insertable(json['downloadedAt']),
errorMessage: serializer.fromJson(json['errorMessage']),
retryCount: serializer.fromJson(json['retryCount']),
+ bgTaskId: serializer.fromJson(json['bgTaskId']),
);
}
@override
@@ -431,6 +605,7 @@ class DownloadedMediaItem extends DataClass implements Insertable(downloadedAt),
'errorMessage': serializer.toJson(errorMessage),
'retryCount': serializer.toJson(retryCount),
+ 'bgTaskId': serializer.toJson(bgTaskId),
};
}
@@ -451,23 +626,31 @@ class DownloadedMediaItem extends DataClass implements Insertable downloadedAt = const Value.absent(),
Value errorMessage = const Value.absent(),
int? retryCount,
+ Value bgTaskId = const Value.absent(),
}) => DownloadedMediaItem(
id: id ?? this.id,
serverId: serverId ?? this.serverId,
ratingKey: ratingKey ?? this.ratingKey,
globalKey: globalKey ?? this.globalKey,
type: type ?? this.type,
- parentRatingKey: parentRatingKey.present ? parentRatingKey.value : this.parentRatingKey,
- grandparentRatingKey: grandparentRatingKey.present ? grandparentRatingKey.value : this.grandparentRatingKey,
+ parentRatingKey: parentRatingKey.present
+ ? parentRatingKey.value
+ : this.parentRatingKey,
+ grandparentRatingKey: grandparentRatingKey.present
+ ? grandparentRatingKey.value
+ : this.grandparentRatingKey,
status: status ?? this.status,
progress: progress ?? this.progress,
totalBytes: totalBytes.present ? totalBytes.value : this.totalBytes,
downloadedBytes: downloadedBytes ?? this.downloadedBytes,
- videoFilePath: videoFilePath.present ? videoFilePath.value : this.videoFilePath,
+ videoFilePath: videoFilePath.present
+ ? videoFilePath.value
+ : this.videoFilePath,
thumbPath: thumbPath.present ? thumbPath.value : this.thumbPath,
downloadedAt: downloadedAt.present ? downloadedAt.value : this.downloadedAt,
errorMessage: errorMessage.present ? errorMessage.value : this.errorMessage,
retryCount: retryCount ?? this.retryCount,
+ bgTaskId: bgTaskId.present ? bgTaskId.value : this.bgTaskId,
);
DownloadedMediaItem copyWithCompanion(DownloadedMediaCompanion data) {
return DownloadedMediaItem(
@@ -476,19 +659,34 @@ class DownloadedMediaItem extends DataClass implements Insertable
@@ -553,7 +753,8 @@ class DownloadedMediaItem extends DataClass implements Insertable {
@@ -573,6 +774,7 @@ class DownloadedMediaCompanion extends UpdateCompanion {
final Value downloadedAt;
final Value errorMessage;
final Value retryCount;
+ final Value bgTaskId;
const DownloadedMediaCompanion({
this.id = const Value.absent(),
this.serverId = const Value.absent(),
@@ -590,6 +792,7 @@ class DownloadedMediaCompanion extends UpdateCompanion {
this.downloadedAt = const Value.absent(),
this.errorMessage = const Value.absent(),
this.retryCount = const Value.absent(),
+ this.bgTaskId = const Value.absent(),
});
DownloadedMediaCompanion.insert({
this.id = const Value.absent(),
@@ -608,6 +811,7 @@ class DownloadedMediaCompanion extends UpdateCompanion {
this.downloadedAt = const Value.absent(),
this.errorMessage = const Value.absent(),
this.retryCount = const Value.absent(),
+ this.bgTaskId = const Value.absent(),
}) : serverId = Value(serverId),
ratingKey = Value(ratingKey),
globalKey = Value(globalKey),
@@ -630,6 +834,7 @@ class DownloadedMediaCompanion extends UpdateCompanion {
Expression? downloadedAt,
Expression? errorMessage,
Expression? retryCount,
+ Expression? bgTaskId,
}) {
return RawValuesInsertable({
if (id != null) 'id': id,
@@ -638,7 +843,8 @@ class DownloadedMediaCompanion extends UpdateCompanion {
if (globalKey != null) 'global_key': globalKey,
if (type != null) 'type': type,
if (parentRatingKey != null) 'parent_rating_key': parentRatingKey,
- if (grandparentRatingKey != null) 'grandparent_rating_key': grandparentRatingKey,
+ if (grandparentRatingKey != null)
+ 'grandparent_rating_key': grandparentRatingKey,
if (status != null) 'status': status,
if (progress != null) 'progress': progress,
if (totalBytes != null) 'total_bytes': totalBytes,
@@ -648,6 +854,7 @@ class DownloadedMediaCompanion extends UpdateCompanion {
if (downloadedAt != null) 'downloaded_at': downloadedAt,
if (errorMessage != null) 'error_message': errorMessage,
if (retryCount != null) 'retry_count': retryCount,
+ if (bgTaskId != null) 'bg_task_id': bgTaskId,
});
}
@@ -668,6 +875,7 @@ class DownloadedMediaCompanion extends UpdateCompanion {
Value? downloadedAt,
Value? errorMessage,
Value? retryCount,
+ Value? bgTaskId,
}) {
return DownloadedMediaCompanion(
id: id ?? this.id,
@@ -686,6 +894,7 @@ class DownloadedMediaCompanion extends UpdateCompanion {
downloadedAt: downloadedAt ?? this.downloadedAt,
errorMessage: errorMessage ?? this.errorMessage,
retryCount: retryCount ?? this.retryCount,
+ bgTaskId: bgTaskId ?? this.bgTaskId,
);
}
@@ -711,7 +920,9 @@ class DownloadedMediaCompanion extends UpdateCompanion {
map['parent_rating_key'] = Variable(parentRatingKey.value);
}
if (grandparentRatingKey.present) {
- map['grandparent_rating_key'] = Variable(grandparentRatingKey.value);
+ map['grandparent_rating_key'] = Variable(
+ grandparentRatingKey.value,
+ );
}
if (status.present) {
map['status'] = Variable(status.value);
@@ -740,6 +951,9 @@ class DownloadedMediaCompanion extends UpdateCompanion {
if (retryCount.present) {
map['retry_count'] = Variable(retryCount.value);
}
+ if (bgTaskId.present) {
+ map['bg_task_id'] = Variable(bgTaskId.value);
+ }
return map;
}
@@ -761,13 +975,15 @@ class DownloadedMediaCompanion extends UpdateCompanion {
..write('thumbPath: $thumbPath, ')
..write('downloadedAt: $downloadedAt, ')
..write('errorMessage: $errorMessage, ')
- ..write('retryCount: $retryCount')
+ ..write('retryCount: $retryCount, ')
+ ..write('bgTaskId: $bgTaskId')
..write(')'))
.toString();
}
}
-class $DownloadQueueTable extends DownloadQueue with TableInfo<$DownloadQueueTable, DownloadQueueItem> {
+class $DownloadQueueTable extends DownloadQueue
+ with TableInfo<$DownloadQueueTable, DownloadQueueItem> {
@override
final GeneratedDatabase attachedDatabase;
final String? _alias;
@@ -781,9 +997,13 @@ class $DownloadQueueTable extends DownloadQueue with TableInfo<$DownloadQueueTab
hasAutoIncrement: true,
type: DriftSqlType.int,
requiredDuringInsert: false,
- defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT'),
+ defaultConstraints: GeneratedColumn.constraintIsAlways(
+ 'PRIMARY KEY AUTOINCREMENT',
+ ),
+ );
+ static const VerificationMeta _mediaGlobalKeyMeta = const VerificationMeta(
+ 'mediaGlobalKey',
);
- static const VerificationMeta _mediaGlobalKeyMeta = const VerificationMeta('mediaGlobalKey');
@override
late final GeneratedColumn mediaGlobalKey = GeneratedColumn(
'media_global_key',
@@ -793,7 +1013,9 @@ class $DownloadQueueTable extends DownloadQueue with TableInfo<$DownloadQueueTab
requiredDuringInsert: true,
defaultConstraints: GeneratedColumn.constraintIsAlways('UNIQUE'),
);
- static const VerificationMeta _priorityMeta = const VerificationMeta('priority');
+ static const VerificationMeta _priorityMeta = const VerificationMeta(
+ 'priority',
+ );
@override
late final GeneratedColumn priority = GeneratedColumn(
'priority',
@@ -803,7 +1025,9 @@ class $DownloadQueueTable extends DownloadQueue with TableInfo<$DownloadQueueTab
requiredDuringInsert: false,
defaultValue: const Constant(0),
);
- static const VerificationMeta _addedAtMeta = const VerificationMeta('addedAt');
+ static const VerificationMeta _addedAtMeta = const VerificationMeta(
+ 'addedAt',
+ );
@override
late final GeneratedColumn addedAt = GeneratedColumn(
'added_at',
@@ -812,7 +1036,9 @@ class $DownloadQueueTable extends DownloadQueue with TableInfo<$DownloadQueueTab
type: DriftSqlType.int,
requiredDuringInsert: true,
);
- static const VerificationMeta _downloadSubtitlesMeta = const VerificationMeta('downloadSubtitles');
+ static const VerificationMeta _downloadSubtitlesMeta = const VerificationMeta(
+ 'downloadSubtitles',
+ );
@override
late final GeneratedColumn downloadSubtitles = GeneratedColumn(
'download_subtitles',
@@ -820,10 +1046,14 @@ class $DownloadQueueTable extends DownloadQueue with TableInfo<$DownloadQueueTab
false,
type: DriftSqlType.bool,
requiredDuringInsert: false,
- defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("download_subtitles" IN (0, 1))'),
+ defaultConstraints: GeneratedColumn.constraintIsAlways(
+ 'CHECK ("download_subtitles" IN (0, 1))',
+ ),
defaultValue: const Constant(true),
);
- static const VerificationMeta _downloadArtworkMeta = const VerificationMeta('downloadArtwork');
+ static const VerificationMeta _downloadArtworkMeta = const VerificationMeta(
+ 'downloadArtwork',
+ );
@override
late final GeneratedColumn downloadArtwork = GeneratedColumn(
'download_artwork',
@@ -831,18 +1061,30 @@ class $DownloadQueueTable extends DownloadQueue with TableInfo<$DownloadQueueTab
false,
type: DriftSqlType.bool,
requiredDuringInsert: false,
- defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("download_artwork" IN (0, 1))'),
+ defaultConstraints: GeneratedColumn.constraintIsAlways(
+ 'CHECK ("download_artwork" IN (0, 1))',
+ ),
defaultValue: const Constant(true),
);
@override
- List get $columns => [id, mediaGlobalKey, priority, addedAt, downloadSubtitles, downloadArtwork];
+ List get $columns => [
+ id,
+ mediaGlobalKey,
+ priority,
+ addedAt,
+ downloadSubtitles,
+ downloadArtwork,
+ ];
@override
String get aliasedName => _alias ?? actualTableName;
@override
String get actualTableName => $name;
static const String $name = 'download_queue';
@override
- VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) {
+ VerificationContext validateIntegrity(
+ Insertable instance, {
+ bool isInserting = false,
+ }) {
final context = VerificationContext();
final data = instance.toColumns(true);
if (data.containsKey('id')) {
@@ -851,29 +1093,44 @@ class $DownloadQueueTable extends DownloadQueue with TableInfo<$DownloadQueueTab
if (data.containsKey('media_global_key')) {
context.handle(
_mediaGlobalKeyMeta,
- mediaGlobalKey.isAcceptableOrUnknown(data['media_global_key']!, _mediaGlobalKeyMeta),
+ mediaGlobalKey.isAcceptableOrUnknown(
+ data['media_global_key']!,
+ _mediaGlobalKeyMeta,
+ ),
);
} else if (isInserting) {
context.missing(_mediaGlobalKeyMeta);
}
if (data.containsKey('priority')) {
- context.handle(_priorityMeta, priority.isAcceptableOrUnknown(data['priority']!, _priorityMeta));
+ context.handle(
+ _priorityMeta,
+ priority.isAcceptableOrUnknown(data['priority']!, _priorityMeta),
+ );
}
if (data.containsKey('added_at')) {
- context.handle(_addedAtMeta, addedAt.isAcceptableOrUnknown(data['added_at']!, _addedAtMeta));
+ context.handle(
+ _addedAtMeta,
+ addedAt.isAcceptableOrUnknown(data['added_at']!, _addedAtMeta),
+ );
} else if (isInserting) {
context.missing(_addedAtMeta);
}
if (data.containsKey('download_subtitles')) {
context.handle(
_downloadSubtitlesMeta,
- downloadSubtitles.isAcceptableOrUnknown(data['download_subtitles']!, _downloadSubtitlesMeta),
+ downloadSubtitles.isAcceptableOrUnknown(
+ data['download_subtitles']!,
+ _downloadSubtitlesMeta,
+ ),
);
}
if (data.containsKey('download_artwork')) {
context.handle(
_downloadArtworkMeta,
- downloadArtwork.isAcceptableOrUnknown(data['download_artwork']!, _downloadArtworkMeta),
+ downloadArtwork.isAcceptableOrUnknown(
+ data['download_artwork']!,
+ _downloadArtworkMeta,
+ ),
);
}
return context;
@@ -885,13 +1142,22 @@ class $DownloadQueueTable extends DownloadQueue with TableInfo<$DownloadQueueTab
DownloadQueueItem map(Map data, {String? tablePrefix}) {
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
return DownloadQueueItem(
- id: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}id'])!,
+ id: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}id'],
+ )!,
mediaGlobalKey: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}media_global_key'],
)!,
- priority: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}priority'])!,
- addedAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}added_at'])!,
+ priority: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}priority'],
+ )!,
+ addedAt: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}added_at'],
+ )!,
downloadSubtitles: attachedDatabase.typeMapping.read(
DriftSqlType.bool,
data['${effectivePrefix}download_subtitles'],
@@ -909,7 +1175,8 @@ class $DownloadQueueTable extends DownloadQueue with TableInfo<$DownloadQueueTab
}
}
-class DownloadQueueItem extends DataClass implements Insertable {
+class DownloadQueueItem extends DataClass
+ implements Insertable {
final int id;
final String mediaGlobalKey;
final int priority;
@@ -947,7 +1214,10 @@ class DownloadQueueItem extends DataClass implements Insertable json, {ValueSerializer? serializer}) {
+ factory DownloadQueueItem.fromJson(
+ Map json, {
+ ValueSerializer? serializer,
+ }) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return DownloadQueueItem(
id: serializer.fromJson(json['id']),
@@ -989,11 +1259,17 @@ class DownloadQueueItem extends DataClass implements Insertable Object.hash(id, mediaGlobalKey, priority, addedAt, downloadSubtitles, downloadArtwork);
+ int get hashCode => Object.hash(
+ id,
+ mediaGlobalKey,
+ priority,
+ addedAt,
+ downloadSubtitles,
+ downloadArtwork,
+ );
@override
bool operator ==(Object other) =>
identical(this, other) ||
@@ -1122,12 +1405,15 @@ class DownloadQueueCompanion extends UpdateCompanion {
}
}
-class $ApiCacheTable extends ApiCache with TableInfo<$ApiCacheTable, ApiCacheData> {
+class $ApiCacheTable extends ApiCache
+ with TableInfo<$ApiCacheTable, ApiCacheData> {
@override
final GeneratedDatabase attachedDatabase;
final String? _alias;
$ApiCacheTable(this.attachedDatabase, [this._alias]);
- static const VerificationMeta _cacheKeyMeta = const VerificationMeta('cacheKey');
+ static const VerificationMeta _cacheKeyMeta = const VerificationMeta(
+ 'cacheKey',
+ );
@override
late final GeneratedColumn cacheKey = GeneratedColumn(
'cache_key',
@@ -1153,10 +1439,14 @@ class $ApiCacheTable extends ApiCache with TableInfo<$ApiCacheTable, ApiCacheDat
false,
type: DriftSqlType.bool,
requiredDuringInsert: false,
- defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("pinned" IN (0, 1))'),
+ defaultConstraints: GeneratedColumn.constraintIsAlways(
+ 'CHECK ("pinned" IN (0, 1))',
+ ),
defaultValue: const Constant(false),
);
- static const VerificationMeta _cachedAtMeta = const VerificationMeta('cachedAt');
+ static const VerificationMeta _cachedAtMeta = const VerificationMeta(
+ 'cachedAt',
+ );
@override
late final GeneratedColumn cachedAt = GeneratedColumn(
'cached_at',
@@ -1174,24 +1464,39 @@ class $ApiCacheTable extends ApiCache with TableInfo<$ApiCacheTable, ApiCacheDat
String get actualTableName => $name;
static const String $name = 'api_cache';
@override
- VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) {
+ VerificationContext validateIntegrity(
+ Insertable instance, {
+ bool isInserting = false,
+ }) {
final context = VerificationContext();
final data = instance.toColumns(true);
if (data.containsKey('cache_key')) {
- context.handle(_cacheKeyMeta, cacheKey.isAcceptableOrUnknown(data['cache_key']!, _cacheKeyMeta));
+ context.handle(
+ _cacheKeyMeta,
+ cacheKey.isAcceptableOrUnknown(data['cache_key']!, _cacheKeyMeta),
+ );
} else if (isInserting) {
context.missing(_cacheKeyMeta);
}
if (data.containsKey('data')) {
- context.handle(_dataMeta, this.data.isAcceptableOrUnknown(data['data']!, _dataMeta));
+ context.handle(
+ _dataMeta,
+ this.data.isAcceptableOrUnknown(data['data']!, _dataMeta),
+ );
} else if (isInserting) {
context.missing(_dataMeta);
}
if (data.containsKey('pinned')) {
- context.handle(_pinnedMeta, pinned.isAcceptableOrUnknown(data['pinned']!, _pinnedMeta));
+ context.handle(
+ _pinnedMeta,
+ pinned.isAcceptableOrUnknown(data['pinned']!, _pinnedMeta),
+ );
}
if (data.containsKey('cached_at')) {
- context.handle(_cachedAtMeta, cachedAt.isAcceptableOrUnknown(data['cached_at']!, _cachedAtMeta));
+ context.handle(
+ _cachedAtMeta,
+ cachedAt.isAcceptableOrUnknown(data['cached_at']!, _cachedAtMeta),
+ );
}
return context;
}
@@ -1202,10 +1507,22 @@ class $ApiCacheTable extends ApiCache with TableInfo<$ApiCacheTable, ApiCacheDat
ApiCacheData map(Map data, {String? tablePrefix}) {
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
return ApiCacheData(
- cacheKey: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}cache_key'])!,
- data: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}data'])!,
- pinned: attachedDatabase.typeMapping.read(DriftSqlType.bool, data['${effectivePrefix}pinned'])!,
- cachedAt: attachedDatabase.typeMapping.read(DriftSqlType.dateTime, data['${effectivePrefix}cached_at'])!,
+ cacheKey: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}cache_key'],
+ )!,
+ data: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}data'],
+ )!,
+ pinned: attachedDatabase.typeMapping.read(
+ DriftSqlType.bool,
+ data['${effectivePrefix}pinned'],
+ )!,
+ cachedAt: attachedDatabase.typeMapping.read(
+ DriftSqlType.dateTime,
+ data['${effectivePrefix}cached_at'],
+ )!,
);
}
@@ -1227,7 +1544,12 @@ class ApiCacheData extends DataClass implements Insertable {
/// Timestamp for cache invalidation (optional future use)
final DateTime cachedAt;
- const ApiCacheData({required this.cacheKey, required this.data, required this.pinned, required this.cachedAt});
+ const ApiCacheData({
+ required this.cacheKey,
+ required this.data,
+ required this.pinned,
+ required this.cachedAt,
+ });
@override
Map toColumns(bool nullToAbsent) {
final map = {};
@@ -1247,7 +1569,10 @@ class ApiCacheData extends DataClass implements Insertable {
);
}
- factory ApiCacheData.fromJson(Map json, {ValueSerializer? serializer}) {
+ factory ApiCacheData.fromJson(
+ Map json, {
+ ValueSerializer? serializer,
+ }) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return ApiCacheData(
cacheKey: serializer.fromJson(json['cacheKey']),
@@ -1267,7 +1592,12 @@ class ApiCacheData extends DataClass implements Insertable {
};
}
- ApiCacheData copyWith({String? cacheKey, String? data, bool? pinned, DateTime? cachedAt}) => ApiCacheData(
+ ApiCacheData copyWith({
+ String? cacheKey,
+ String? data,
+ bool? pinned,
+ DateTime? cachedAt,
+ }) => ApiCacheData(
cacheKey: cacheKey ?? this.cacheKey,
data: data ?? this.data,
pinned: pinned ?? this.pinned,
@@ -1407,9 +1737,13 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress
hasAutoIncrement: true,
type: DriftSqlType.int,
requiredDuringInsert: false,
- defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT'),
+ defaultConstraints: GeneratedColumn.constraintIsAlways(
+ 'PRIMARY KEY AUTOINCREMENT',
+ ),
+ );
+ static const VerificationMeta _serverIdMeta = const VerificationMeta(
+ 'serverId',
);
- static const VerificationMeta _serverIdMeta = const VerificationMeta('serverId');
@override
late final GeneratedColumn serverId = GeneratedColumn(
'server_id',
@@ -1418,7 +1752,9 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress
type: DriftSqlType.string,
requiredDuringInsert: true,
);
- static const VerificationMeta _ratingKeyMeta = const VerificationMeta('ratingKey');
+ static const VerificationMeta _ratingKeyMeta = const VerificationMeta(
+ 'ratingKey',
+ );
@override
late final GeneratedColumn ratingKey = GeneratedColumn(
'rating_key',
@@ -1427,7 +1763,9 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress
type: DriftSqlType.string,
requiredDuringInsert: true,
);
- static const VerificationMeta _globalKeyMeta = const VerificationMeta('globalKey');
+ static const VerificationMeta _globalKeyMeta = const VerificationMeta(
+ 'globalKey',
+ );
@override
late final GeneratedColumn globalKey = GeneratedColumn(
'global_key',
@@ -1436,7 +1774,9 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress
type: DriftSqlType.string,
requiredDuringInsert: true,
);
- static const VerificationMeta _actionTypeMeta = const VerificationMeta('actionType');
+ static const VerificationMeta _actionTypeMeta = const VerificationMeta(
+ 'actionType',
+ );
@override
late final GeneratedColumn actionType = GeneratedColumn(
'action_type',
@@ -1445,7 +1785,9 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress
type: DriftSqlType.string,
requiredDuringInsert: true,
);
- static const VerificationMeta _viewOffsetMeta = const VerificationMeta('viewOffset');
+ static const VerificationMeta _viewOffsetMeta = const VerificationMeta(
+ 'viewOffset',
+ );
@override
late final GeneratedColumn viewOffset = GeneratedColumn(
'view_offset',
@@ -1454,7 +1796,9 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress
type: DriftSqlType.int,
requiredDuringInsert: false,
);
- static const VerificationMeta _durationMeta = const VerificationMeta('duration');
+ static const VerificationMeta _durationMeta = const VerificationMeta(
+ 'duration',
+ );
@override
late final GeneratedColumn duration = GeneratedColumn(
'duration',
@@ -1463,7 +1807,9 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress
type: DriftSqlType.int,
requiredDuringInsert: false,
);
- static const VerificationMeta _shouldMarkWatchedMeta = const VerificationMeta('shouldMarkWatched');
+ static const VerificationMeta _shouldMarkWatchedMeta = const VerificationMeta(
+ 'shouldMarkWatched',
+ );
@override
late final GeneratedColumn shouldMarkWatched = GeneratedColumn(
'should_mark_watched',
@@ -1471,10 +1817,14 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress
false,
type: DriftSqlType.bool,
requiredDuringInsert: false,
- defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("should_mark_watched" IN (0, 1))'),
+ defaultConstraints: GeneratedColumn.constraintIsAlways(
+ 'CHECK ("should_mark_watched" IN (0, 1))',
+ ),
defaultValue: const Constant(false),
);
- static const VerificationMeta _createdAtMeta = const VerificationMeta('createdAt');
+ static const VerificationMeta _createdAtMeta = const VerificationMeta(
+ 'createdAt',
+ );
@override
late final GeneratedColumn createdAt = GeneratedColumn(
'created_at',
@@ -1483,7 +1833,9 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress
type: DriftSqlType.int,
requiredDuringInsert: true,
);
- static const VerificationMeta _updatedAtMeta = const VerificationMeta('updatedAt');
+ static const VerificationMeta _updatedAtMeta = const VerificationMeta(
+ 'updatedAt',
+ );
@override
late final GeneratedColumn updatedAt = GeneratedColumn(
'updated_at',
@@ -1492,7 +1844,9 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress
type: DriftSqlType.int,
requiredDuringInsert: true,
);
- static const VerificationMeta _syncAttemptsMeta = const VerificationMeta('syncAttempts');
+ static const VerificationMeta _syncAttemptsMeta = const VerificationMeta(
+ 'syncAttempts',
+ );
@override
late final GeneratedColumn syncAttempts = GeneratedColumn(
'sync_attempts',
@@ -1502,7 +1856,9 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress
requiredDuringInsert: false,
defaultValue: const Constant(0),
);
- static const VerificationMeta _lastErrorMeta = const VerificationMeta('lastError');
+ static const VerificationMeta _lastErrorMeta = const VerificationMeta(
+ 'lastError',
+ );
@override
late final GeneratedColumn lastError = GeneratedColumn(
'last_error',
@@ -1532,59 +1888,98 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress
String get actualTableName => $name;
static const String $name = 'offline_watch_progress';
@override
- VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) {
+ VerificationContext validateIntegrity(
+ Insertable instance, {
+ bool isInserting = false,
+ }) {
final context = VerificationContext();
final data = instance.toColumns(true);
if (data.containsKey('id')) {
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
}
if (data.containsKey('server_id')) {
- context.handle(_serverIdMeta, serverId.isAcceptableOrUnknown(data['server_id']!, _serverIdMeta));
+ context.handle(
+ _serverIdMeta,
+ serverId.isAcceptableOrUnknown(data['server_id']!, _serverIdMeta),
+ );
} else if (isInserting) {
context.missing(_serverIdMeta);
}
if (data.containsKey('rating_key')) {
- context.handle(_ratingKeyMeta, ratingKey.isAcceptableOrUnknown(data['rating_key']!, _ratingKeyMeta));
+ context.handle(
+ _ratingKeyMeta,
+ ratingKey.isAcceptableOrUnknown(data['rating_key']!, _ratingKeyMeta),
+ );
} else if (isInserting) {
context.missing(_ratingKeyMeta);
}
if (data.containsKey('global_key')) {
- context.handle(_globalKeyMeta, globalKey.isAcceptableOrUnknown(data['global_key']!, _globalKeyMeta));
+ context.handle(
+ _globalKeyMeta,
+ globalKey.isAcceptableOrUnknown(data['global_key']!, _globalKeyMeta),
+ );
} else if (isInserting) {
context.missing(_globalKeyMeta);
}
if (data.containsKey('action_type')) {
- context.handle(_actionTypeMeta, actionType.isAcceptableOrUnknown(data['action_type']!, _actionTypeMeta));
+ context.handle(
+ _actionTypeMeta,
+ actionType.isAcceptableOrUnknown(data['action_type']!, _actionTypeMeta),
+ );
} else if (isInserting) {
context.missing(_actionTypeMeta);
}
if (data.containsKey('view_offset')) {
- context.handle(_viewOffsetMeta, viewOffset.isAcceptableOrUnknown(data['view_offset']!, _viewOffsetMeta));
+ context.handle(
+ _viewOffsetMeta,
+ viewOffset.isAcceptableOrUnknown(data['view_offset']!, _viewOffsetMeta),
+ );
}
if (data.containsKey('duration')) {
- context.handle(_durationMeta, duration.isAcceptableOrUnknown(data['duration']!, _durationMeta));
+ context.handle(
+ _durationMeta,
+ duration.isAcceptableOrUnknown(data['duration']!, _durationMeta),
+ );
}
if (data.containsKey('should_mark_watched')) {
context.handle(
_shouldMarkWatchedMeta,
- shouldMarkWatched.isAcceptableOrUnknown(data['should_mark_watched']!, _shouldMarkWatchedMeta),
+ shouldMarkWatched.isAcceptableOrUnknown(
+ data['should_mark_watched']!,
+ _shouldMarkWatchedMeta,
+ ),
);
}
if (data.containsKey('created_at')) {
- context.handle(_createdAtMeta, createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta));
+ context.handle(
+ _createdAtMeta,
+ createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta),
+ );
} else if (isInserting) {
context.missing(_createdAtMeta);
}
if (data.containsKey('updated_at')) {
- context.handle(_updatedAtMeta, updatedAt.isAcceptableOrUnknown(data['updated_at']!, _updatedAtMeta));
+ context.handle(
+ _updatedAtMeta,
+ updatedAt.isAcceptableOrUnknown(data['updated_at']!, _updatedAtMeta),
+ );
} else if (isInserting) {
context.missing(_updatedAtMeta);
}
if (data.containsKey('sync_attempts')) {
- context.handle(_syncAttemptsMeta, syncAttempts.isAcceptableOrUnknown(data['sync_attempts']!, _syncAttemptsMeta));
+ context.handle(
+ _syncAttemptsMeta,
+ syncAttempts.isAcceptableOrUnknown(
+ data['sync_attempts']!,
+ _syncAttemptsMeta,
+ ),
+ );
}
if (data.containsKey('last_error')) {
- context.handle(_lastErrorMeta, lastError.isAcceptableOrUnknown(data['last_error']!, _lastErrorMeta));
+ context.handle(
+ _lastErrorMeta,
+ lastError.isAcceptableOrUnknown(data['last_error']!, _lastErrorMeta),
+ );
}
return context;
}
@@ -1592,24 +1987,60 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress
@override
Set get $primaryKey => {id};
@override
- OfflineWatchProgressItem map(Map data, {String? tablePrefix}) {
+ OfflineWatchProgressItem map(
+ Map data, {
+ String? tablePrefix,
+ }) {
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
return OfflineWatchProgressItem(
- id: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}id'])!,
- serverId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}server_id'])!,
- ratingKey: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}rating_key'])!,
- globalKey: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}global_key'])!,
- actionType: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}action_type'])!,
- viewOffset: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}view_offset']),
- duration: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}duration']),
+ id: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}id'],
+ )!,
+ serverId: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}server_id'],
+ )!,
+ ratingKey: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}rating_key'],
+ )!,
+ globalKey: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}global_key'],
+ )!,
+ actionType: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}action_type'],
+ )!,
+ viewOffset: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}view_offset'],
+ ),
+ duration: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}duration'],
+ ),
shouldMarkWatched: attachedDatabase.typeMapping.read(
DriftSqlType.bool,
data['${effectivePrefix}should_mark_watched'],
)!,
- createdAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}created_at'])!,
- updatedAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}updated_at'])!,
- syncAttempts: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}sync_attempts'])!,
- lastError: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}last_error']),
+ createdAt: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}created_at'],
+ )!,
+ updatedAt: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}updated_at'],
+ )!,
+ syncAttempts: attachedDatabase.typeMapping.read(
+ DriftSqlType.int,
+ data['${effectivePrefix}sync_attempts'],
+ )!,
+ lastError: attachedDatabase.typeMapping.read(
+ DriftSqlType.string,
+ data['${effectivePrefix}last_error'],
+ ),
);
}
@@ -1619,7 +2050,8 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress
}
}
-class OfflineWatchProgressItem extends DataClass implements Insertable {
+class OfflineWatchProgressItem extends DataClass
+ implements Insertable {
/// Auto-incrementing primary key
final int id;
@@ -1701,17 +2133,26 @@ class OfflineWatchProgressItem extends DataClass implements Insertable json, {ValueSerializer? serializer}) {
+ factory OfflineWatchProgressItem.fromJson(
+ Map json, {
+ ValueSerializer? serializer,
+ }) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return OfflineWatchProgressItem(
id: serializer.fromJson(json['id']),
@@ -1774,19 +2215,29 @@ class OfflineWatchProgressItem extends DataClass implements Insertable {
+class OfflineWatchProgressCompanion
+ extends UpdateCompanion {
final Value id;
final Value serverId;
final Value ratingKey;
@@ -2014,14 +2466,23 @@ class OfflineWatchProgressCompanion extends UpdateCompanion $AppDatabaseManager(this);
- late final $DownloadedMediaTable downloadedMedia = $DownloadedMediaTable(this);
+ late final $DownloadedMediaTable downloadedMedia = $DownloadedMediaTable(
+ this,
+ );
late final $DownloadQueueTable downloadQueue = $DownloadQueueTable(this);
late final $ApiCacheTable apiCache = $ApiCacheTable(this);
- late final $OfflineWatchProgressTable offlineWatchProgress = $OfflineWatchProgressTable(this);
+ late final $OfflineWatchProgressTable offlineWatchProgress =
+ $OfflineWatchProgressTable(this);
@override
- Iterable> get allTables => allSchemaEntities.whereType>();
+ Iterable> get allTables =>
+ allSchemaEntities.whereType>();
@override
- List get allSchemaEntities => [downloadedMedia, downloadQueue, apiCache, offlineWatchProgress];
+ List get allSchemaEntities => [
+ downloadedMedia,
+ downloadQueue,
+ apiCache,
+ offlineWatchProgress,
+ ];
}
typedef $$DownloadedMediaTableCreateCompanionBuilder =
@@ -2042,6 +2503,7 @@ typedef $$DownloadedMediaTableCreateCompanionBuilder =
Value downloadedAt,
Value errorMessage,
Value retryCount,
+ Value bgTaskId,
});
typedef $$DownloadedMediaTableUpdateCompanionBuilder =
DownloadedMediaCompanion Function({
@@ -2061,9 +2523,11 @@ typedef $$DownloadedMediaTableUpdateCompanionBuilder =
Value downloadedAt,
Value errorMessage,
Value retryCount,
+ Value bgTaskId,
});
-class $$DownloadedMediaTableFilterComposer extends Composer<_$AppDatabase, $DownloadedMediaTable> {
+class $$DownloadedMediaTableFilterComposer
+ extends Composer<_$AppDatabase, $DownloadedMediaTable> {
$$DownloadedMediaTableFilterComposer({
required super.$db,
required super.$table,
@@ -2071,54 +2535,94 @@ class $$DownloadedMediaTableFilterComposer extends Composer<_$AppDatabase, $Down
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
- ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column));
+ ColumnFilters get id => $composableBuilder(
+ column: $table.id,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get serverId =>
- $composableBuilder(column: $table.serverId, builder: (column) => ColumnFilters(column));
+ ColumnFilters get serverId => $composableBuilder(
+ column: $table.serverId,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get ratingKey =>
- $composableBuilder(column: $table.ratingKey, builder: (column) => ColumnFilters(column));
+ ColumnFilters get ratingKey => $composableBuilder(
+ column: $table.ratingKey,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get globalKey =>
- $composableBuilder(column: $table.globalKey, builder: (column) => ColumnFilters(column));
+ ColumnFilters get globalKey => $composableBuilder(
+ column: $table.globalKey,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get type => $composableBuilder(column: $table.type, builder: (column) => ColumnFilters(column));
+ ColumnFilters get type => $composableBuilder(
+ column: $table.type,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get parentRatingKey =>
- $composableBuilder(column: $table.parentRatingKey, builder: (column) => ColumnFilters(column));
+ ColumnFilters get parentRatingKey => $composableBuilder(
+ column: $table.parentRatingKey,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get grandparentRatingKey =>
- $composableBuilder(column: $table.grandparentRatingKey, builder: (column) => ColumnFilters(column));
+ ColumnFilters get grandparentRatingKey => $composableBuilder(
+ column: $table.grandparentRatingKey,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get status =>
- $composableBuilder(column: $table.status, builder: (column) => ColumnFilters(column));
+ ColumnFilters get status => $composableBuilder(
+ column: $table.status,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get progress =>
- $composableBuilder(column: $table.progress, builder: (column) => ColumnFilters(column));
+ ColumnFilters get progress => $composableBuilder(
+ column: $table.progress,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get totalBytes =>
- $composableBuilder(column: $table.totalBytes, builder: (column) => ColumnFilters(column));
+ ColumnFilters get totalBytes => $composableBuilder(
+ column: $table.totalBytes,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get downloadedBytes =>
- $composableBuilder(column: $table.downloadedBytes, builder: (column) => ColumnFilters(column));
+ ColumnFilters get downloadedBytes => $composableBuilder(
+ column: $table.downloadedBytes,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get videoFilePath =>
- $composableBuilder(column: $table.videoFilePath, builder: (column) => ColumnFilters(column));
+ ColumnFilters get videoFilePath => $composableBuilder(
+ column: $table.videoFilePath,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get thumbPath =>
- $composableBuilder(column: $table.thumbPath, builder: (column) => ColumnFilters(column));
+ ColumnFilters get thumbPath => $composableBuilder(
+ column: $table.thumbPath,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get downloadedAt =>
- $composableBuilder(column: $table.downloadedAt, builder: (column) => ColumnFilters(column));
+ ColumnFilters get downloadedAt => $composableBuilder(
+ column: $table.downloadedAt,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get errorMessage =>
- $composableBuilder(column: $table.errorMessage, builder: (column) => ColumnFilters(column));
+ ColumnFilters get errorMessage => $composableBuilder(
+ column: $table.errorMessage,
+ builder: (column) => ColumnFilters(column),
+ );
- ColumnFilters get retryCount =>
- $composableBuilder(column: $table.retryCount, builder: (column) => ColumnFilters(column));
+ ColumnFilters get retryCount => $composableBuilder(
+ column: $table.retryCount,
+ builder: (column) => ColumnFilters(column),
+ );
+
+ ColumnFilters get bgTaskId => $composableBuilder(
+ column: $table.bgTaskId,
+ builder: (column) => ColumnFilters(column),
+ );
}
-class $$DownloadedMediaTableOrderingComposer extends Composer<_$AppDatabase, $DownloadedMediaTable> {
+class $$DownloadedMediaTableOrderingComposer
+ extends Composer<_$AppDatabase, $DownloadedMediaTable> {
$$DownloadedMediaTableOrderingComposer({
required super.$db,
required super.$table,
@@ -2126,55 +2630,94 @@ class $$DownloadedMediaTableOrderingComposer extends Composer<_$AppDatabase, $Do
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
- ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get id => $composableBuilder(
+ column: $table.id,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get serverId =>
- $composableBuilder(column: $table.serverId, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get serverId => $composableBuilder(
+ column: $table.serverId,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get ratingKey =>
- $composableBuilder(column: $table.ratingKey, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get ratingKey => $composableBuilder(
+ column: $table.ratingKey,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get globalKey =>
- $composableBuilder(column: $table.globalKey, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get globalKey => $composableBuilder(
+ column: $table.globalKey,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get type =>
- $composableBuilder(column: $table.type, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get type => $composableBuilder(
+ column: $table.type,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get parentRatingKey =>
- $composableBuilder(column: $table.parentRatingKey, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get parentRatingKey => $composableBuilder(
+ column: $table.parentRatingKey,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get grandparentRatingKey =>
- $composableBuilder(column: $table.grandparentRatingKey, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get grandparentRatingKey => $composableBuilder(
+ column: $table.grandparentRatingKey,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get status =>
- $composableBuilder(column: $table.status, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get status => $composableBuilder(
+ column: $table.status,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get progress =>
- $composableBuilder(column: $table.progress, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get progress => $composableBuilder(
+ column: $table.progress,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get totalBytes =>
- $composableBuilder(column: $table.totalBytes, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get totalBytes => $composableBuilder(
+ column: $table.totalBytes,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get downloadedBytes =>
- $composableBuilder(column: $table.downloadedBytes, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get downloadedBytes => $composableBuilder(
+ column: $table.downloadedBytes,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get videoFilePath =>
- $composableBuilder(column: $table.videoFilePath, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get videoFilePath => $composableBuilder(
+ column: $table.videoFilePath,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get thumbPath =>
- $composableBuilder(column: $table.thumbPath, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get thumbPath => $composableBuilder(
+ column: $table.thumbPath,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get downloadedAt =>
- $composableBuilder(column: $table.downloadedAt, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get downloadedAt => $composableBuilder(
+ column: $table.downloadedAt,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get errorMessage =>
- $composableBuilder(column: $table.errorMessage, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get errorMessage => $composableBuilder(
+ column: $table.errorMessage,
+ builder: (column) => ColumnOrderings(column),
+ );
- ColumnOrderings get retryCount =>
- $composableBuilder(column: $table.retryCount, builder: (column) => ColumnOrderings(column));
+ ColumnOrderings get retryCount => $composableBuilder(
+ column: $table.retryCount,
+ builder: (column) => ColumnOrderings(column),
+ );
+
+ ColumnOrderings get bgTaskId => $composableBuilder(
+ column: $table.bgTaskId,
+ builder: (column) => ColumnOrderings(column),
+ );
}
-class $$DownloadedMediaTableAnnotationComposer extends Composer<_$AppDatabase, $DownloadedMediaTable> {
+class $$DownloadedMediaTableAnnotationComposer
+ extends Composer<_$AppDatabase, $DownloadedMediaTable> {
$$DownloadedMediaTableAnnotationComposer({
required super.$db,
required super.$table,
@@ -2182,42 +2725,72 @@ class $$DownloadedMediaTableAnnotationComposer extends Composer<_$AppDatabase, $
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
- GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column);
+ GeneratedColumn get id =>
+ $composableBuilder(column: $table.id, builder: (column) => column);
- GeneratedColumn get serverId => $composableBuilder(column: $table.serverId, builder: (column) => column);
+ GeneratedColumn