Skip to content

Commit fd9d6fd

Browse files
committed
feat(local_ads_management): add events for saving draft and publishing native ad
- Introduce CreateLocalNativeAdSavedAsDraft event for saving native ad as a draft - Add CreateLocalNativeAdPublished event for publishing native ad - Remove unnecessary CreateLocalNativeAdSubmitted event
1 parent 5a7e615 commit fd9d6fd

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

lib/local_ads_management/bloc/create_local_ads/create_local_native_ad_event.dart

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,18 @@ final class CreateLocalNativeAdTargetUrlChanged
6666
List<Object?> get props => [targetUrl];
6767
}
6868

69-
/// {@template create_local_native_ad_submitted}
70-
/// Event to request submission of the new local native ad.
69+
/// {@template create_local_native_ad_saved_as_draft}
70+
/// Event to request saving the new local native ad as a draft.
7171
/// {@endtemplate}
72-
final class CreateLocalNativeAdSubmitted extends CreateLocalNativeAdEvent {
73-
/// {@macro create_local_native_ad_submitted}
74-
const CreateLocalNativeAdSubmitted();
72+
final class CreateLocalNativeAdSavedAsDraft extends CreateLocalNativeAdEvent {
73+
/// {@macro create_local_native_ad_saved_as_draft}
74+
const CreateLocalNativeAdSavedAsDraft();
75+
}
76+
77+
/// {@template create_local_native_ad_published}
78+
/// Event to request publishing the new local native ad.
79+
/// {@endtemplate}
80+
final class CreateLocalNativeAdPublished extends CreateLocalNativeAdEvent {
81+
/// {@macro create_local_native_ad_published}
82+
const CreateLocalNativeAdPublished();
7583
}

0 commit comments

Comments
 (0)