Skip to content

Commit f5fd4b8

Browse files
committed
refactor(local_ads_management): update pending deletions handling
- Rename and restructure the _ConfirmDeleteLocalAdRequested event - Implement a new _DeletionServiceStatusChanged event to handle updates from the pending deletions service
1 parent 2db2540 commit f5fd4b8

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

lib/local_ads_management/bloc/archive_local_ads/archive_local_ads_event.dart

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,12 @@ final class UndoDeleteLocalAdRequested extends ArchiveLocalAdsEvent {
7373
const UndoDeleteLocalAdRequested();
7474
}
7575

76-
/// Internal event to confirm the permanent deletion of a local ad after a delay.
77-
final class _ConfirmDeleteLocalAdRequested extends ArchiveLocalAdsEvent {
78-
/// {@macro _confirm_delete_local_ad_requested}
79-
const _ConfirmDeleteLocalAdRequested(this.id, this.adType);
76+
/// Event to handle updates from the pending deletions service.
77+
final class _DeletionServiceStatusChanged extends ArchiveLocalAdsEvent {
78+
const _DeletionServiceStatusChanged(this.event);
8079

81-
/// The ID of the local ad to confirm deletion for.
82-
final String id;
83-
84-
/// The type of the local ad to confirm deletion for.
85-
final AdType adType;
80+
final DeletionEvent<dynamic> event;
8681

8782
@override
88-
List<Object?> get props => [id, adType];
83+
List<Object?> get props => [event];
8984
}

0 commit comments

Comments
 (0)