2021-05-01 00:58:05 +08:00
|
|
|
import 'package:nc_photos/mobile/android/notification.dart';
|
|
|
|
import 'package:nc_photos/platform/notification.dart' as itf;
|
|
|
|
|
|
|
|
class AndroidItemDownloadSuccessfulNotification
|
|
|
|
extends itf.ItemDownloadSuccessfulNotification {
|
2021-07-10 22:18:04 +08:00
|
|
|
AndroidItemDownloadSuccessfulNotification(this.fileUris, this.mimeTypes);
|
2021-05-01 00:58:05 +08:00
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> notify() {
|
2021-07-10 22:18:04 +08:00
|
|
|
return Notification.notifyItemsDownloadSuccessful(fileUris, mimeTypes);
|
2021-05-01 00:58:05 +08:00
|
|
|
}
|
|
|
|
|
2021-07-10 22:18:04 +08:00
|
|
|
final List<String> fileUris;
|
2021-07-24 04:05:57 +08:00
|
|
|
final List<String?> mimeTypes;
|
2021-05-01 00:58:05 +08:00
|
|
|
}
|
2021-09-10 19:46:15 +08:00
|
|
|
|
|
|
|
class AndroidLogSaveSuccessfulNotification
|
|
|
|
extends itf.LogSaveSuccessfulNotification {
|
|
|
|
AndroidLogSaveSuccessfulNotification(this.fileUri);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<void> notify() {
|
|
|
|
return Notification.notifyLogSaveSuccessful(fileUri);
|
|
|
|
}
|
|
|
|
|
|
|
|
final String fileUri;
|
|
|
|
}
|