nc-photos/lib/mobile/notification.dart
2021-09-11 16:03:57 +08:00

27 lines
761 B
Dart

import 'package:nc_photos/mobile/android/notification.dart';
import 'package:nc_photos/platform/notification.dart' as itf;
class AndroidItemDownloadSuccessfulNotification
extends itf.ItemDownloadSuccessfulNotification {
AndroidItemDownloadSuccessfulNotification(this.fileUris, this.mimeTypes);
@override
Future<void> notify() {
return Notification.notifyItemsDownloadSuccessful(fileUris, mimeTypes);
}
final List<String> fileUris;
final List<String?> mimeTypes;
}
class AndroidLogSaveSuccessfulNotification
extends itf.LogSaveSuccessfulNotification {
AndroidLogSaveSuccessfulNotification(this.fileUri);
@override
Future<void> notify() {
return Notification.notifyLogSaveSuccessful(fileUri);
}
final String fileUri;
}