Skip to content

Commit c846e7e

Browse files
committed
feat(local_ads_management): add events for saving draft and publishing video ad
- Introduce CreateLocalVideoAdSavedAsDraft event for saving video ad as draft - Introduce CreateLocalVideoAdPublished event for publishing video ad - Remove unnecessary CreateLocalVideoAdSubmitted event
1 parent dc7c5ca commit c846e7e

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_video_ad_event.dart

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,18 @@ final class CreateLocalVideoAdTargetUrlChanged extends CreateLocalVideoAdEvent {
3535
List<Object?> get props => [targetUrl];
3636
}
3737

38-
/// {@template create_local_video_ad_submitted}
39-
/// Event to request submission of the new local video ad.
38+
/// {@template create_local_video_ad_saved_as_draft}
39+
/// Event to request saving the new local video ad as a draft.
4040
/// {@endtemplate}
41-
final class CreateLocalVideoAdSubmitted extends CreateLocalVideoAdEvent {
42-
/// {@macro create_local_video_ad_submitted}
43-
const CreateLocalVideoAdSubmitted();
41+
final class CreateLocalVideoAdSavedAsDraft extends CreateLocalVideoAdEvent {
42+
/// {@macro create_local_video_ad_saved_as_draft}
43+
const CreateLocalVideoAdSavedAsDraft();
44+
}
45+
46+
/// {@template create_local_video_ad_published}
47+
/// Event to request publishing the new local video ad.
48+
/// {@endtemplate}
49+
final class CreateLocalVideoAdPublished extends CreateLocalVideoAdEvent {
50+
/// {@macro create_local_video_ad_published}
51+
const CreateLocalVideoAdPublished();
4452
}

0 commit comments

Comments
 (0)