@@ -38,35 +38,32 @@ final class LoadHeadlinesRequested extends ContentManagementEvent {
38
38
List <Object ?> get props => [startAfterId, limit];
39
39
}
40
40
41
- /// {@template create_headline_requested }
42
- /// Event to request creation of a new headline.
41
+ /// {@template headline_added }
42
+ /// Event to add a new headline to the local state .
43
43
/// {@endtemplate}
44
- final class CreateHeadlineRequested extends ContentManagementEvent {
45
- /// {@macro create_headline_requested }
46
- const CreateHeadlineRequested (this .headline);
44
+ final class HeadlineAdded extends ContentManagementEvent {
45
+ /// {@macro headline_added }
46
+ const HeadlineAdded (this .headline);
47
47
48
- /// The headline to create .
48
+ /// The headline that was added .
49
49
final Headline headline;
50
50
51
51
@override
52
52
List <Object ?> get props => [headline];
53
53
}
54
54
55
- /// {@template update_headline_requested }
56
- /// Event to request update of an existing headline.
55
+ /// {@template headline_updated }
56
+ /// Event to update an existing headline in the local state .
57
57
/// {@endtemplate}
58
- final class UpdateHeadlineRequested extends ContentManagementEvent {
59
- /// {@macro update_headline_requested }
60
- const UpdateHeadlineRequested ({ required this .id, required this . headline} );
58
+ final class HeadlineUpdated extends ContentManagementEvent {
59
+ /// {@macro headline_updated }
60
+ const HeadlineUpdated ( this .headline);
61
61
62
- /// The ID of the headline to update.
63
- final String id;
64
-
65
- /// The updated headline data.
62
+ /// The headline that was updated.
66
63
final Headline headline;
67
64
68
65
@override
69
- List <Object ?> get props => [id, headline];
66
+ List <Object ?> get props => [headline];
70
67
}
71
68
72
69
/// {@template delete_headline_requested}
@@ -100,35 +97,32 @@ final class LoadCategoriesRequested extends ContentManagementEvent {
100
97
List <Object ?> get props => [startAfterId, limit];
101
98
}
102
99
103
- /// {@template create_category_requested }
104
- /// Event to request creation of a new category.
100
+ /// {@template category_added }
101
+ /// Event to add a new category to the local state .
105
102
/// {@endtemplate}
106
- final class CreateCategoryRequested extends ContentManagementEvent {
107
- /// {@macro create_category_requested }
108
- const CreateCategoryRequested (this .category);
103
+ final class CategoryAdded extends ContentManagementEvent {
104
+ /// {@macro category_added }
105
+ const CategoryAdded (this .category);
109
106
110
- /// The category to create .
107
+ /// The category that was added .
111
108
final Category category;
112
109
113
110
@override
114
111
List <Object ?> get props => [category];
115
112
}
116
113
117
- /// {@template update_category_requested }
118
- /// Event to request update of an existing category.
114
+ /// {@template category_updated }
115
+ /// Event to update an existing category in the local state .
119
116
/// {@endtemplate}
120
- final class UpdateCategoryRequested extends ContentManagementEvent {
121
- /// {@macro update_category_requested}
122
- const UpdateCategoryRequested ({required this .id, required this .category});
123
-
124
- /// The ID of the category to update.
125
- final String id;
117
+ final class CategoryUpdated extends ContentManagementEvent {
118
+ /// {@macro category_updated}
119
+ const CategoryUpdated (this .category);
126
120
127
- /// The updated category data .
121
+ /// The category that was updated .
128
122
final Category category;
129
123
130
124
@override
131
- List <Object ?> get props => [id, category];
125
+ List <Object ?> get props => [category];
132
126
}
133
127
134
128
/// {@template delete_category_requested}
@@ -162,35 +156,32 @@ final class LoadSourcesRequested extends ContentManagementEvent {
162
156
List <Object ?> get props => [startAfterId, limit];
163
157
}
164
158
165
- /// {@template create_source_requested }
166
- /// Event to request creation of a new source.
159
+ /// {@template source_added }
160
+ /// Event to add a new source to the local state .
167
161
/// {@endtemplate}
168
- final class CreateSourceRequested extends ContentManagementEvent {
169
- /// {@macro create_source_requested }
170
- const CreateSourceRequested (this .source);
162
+ final class SourceAdded extends ContentManagementEvent {
163
+ /// {@macro source_added }
164
+ const SourceAdded (this .source);
171
165
172
- /// The source to create .
166
+ /// The source that was added .
173
167
final Source source;
174
168
175
169
@override
176
170
List <Object ?> get props => [source];
177
171
}
178
172
179
- /// {@template update_source_requested }
180
- /// Event to request update of an existing source.
173
+ /// {@template source_updated }
174
+ /// Event to update an existing source in the local state .
181
175
/// {@endtemplate}
182
- final class UpdateSourceRequested extends ContentManagementEvent {
183
- /// {@macro update_source_requested}
184
- const UpdateSourceRequested ({required this .id, required this .source});
185
-
186
- /// The ID of the source to update.
187
- final String id;
176
+ final class SourceUpdated extends ContentManagementEvent {
177
+ /// {@macro source_updated}
178
+ const SourceUpdated (this .source);
188
179
189
- /// The updated source data .
180
+ /// The source that was updated .
190
181
final Source source;
191
182
192
183
@override
193
- List <Object ?> get props => [id, source];
184
+ List <Object ?> get props => [source];
194
185
}
195
186
196
187
/// {@template delete_source_requested}
0 commit comments