File tree 4 files changed +14
-14
lines changed
4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ class ZulipStream {
321
321
final bool historyPublicToSubscribers;
322
322
final int ? messageRetentionDays;
323
323
324
- final StreamPostPolicy streamPostPolicy;
324
+ final ChannelPostPolicy streamPostPolicy;
325
325
// final bool isAnnouncementOnly; // deprecated for `streamPostPolicy`; ignore
326
326
327
327
// TODO(server-6): `canRemoveSubscribersGroupId` added in FL 142
@@ -364,14 +364,14 @@ class ZulipStream {
364
364
/// For docs, search for "stream_post_policy"
365
365
/// in <https://zulip.com/api/get-stream-by-id>
366
366
@JsonEnum (valueField: 'apiValue' )
367
- enum StreamPostPolicy {
367
+ enum ChannelPostPolicy {
368
368
any (apiValue: 1 ),
369
369
administrators (apiValue: 2 ),
370
370
fullMembers (apiValue: 3 ),
371
371
moderators (apiValue: 4 ),
372
372
unknown (apiValue: null );
373
373
374
- const StreamPostPolicy ({
374
+ const ChannelPostPolicy ({
375
375
required this .apiValue,
376
376
});
377
377
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ void main() {
78
78
'is_web_public' : false ,
79
79
'history_public_to_subscribers' : true ,
80
80
'message_retention_days' : null ,
81
- 'stream_post_policy' : StreamPostPolicy .any.apiValue,
81
+ 'stream_post_policy' : ChannelPostPolicy .any.apiValue,
82
82
// 'can_remove_subscribers_group': null,
83
83
'stream_weekly_traffic' : null ,
84
84
});
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ ZulipStream stream({
171
171
bool ? isWebPublic,
172
172
bool ? historyPublicToSubscribers,
173
173
int ? messageRetentionDays,
174
- StreamPostPolicy ? streamPostPolicy,
174
+ ChannelPostPolicy ? streamPostPolicy,
175
175
int ? canRemoveSubscribersGroup,
176
176
int ? streamWeeklyTraffic,
177
177
}) {
@@ -186,7 +186,7 @@ ZulipStream stream({
186
186
isWebPublic: isWebPublic ?? false ,
187
187
historyPublicToSubscribers: historyPublicToSubscribers ?? true ,
188
188
messageRetentionDays: messageRetentionDays,
189
- streamPostPolicy: streamPostPolicy ?? StreamPostPolicy .any,
189
+ streamPostPolicy: streamPostPolicy ?? ChannelPostPolicy .any,
190
190
canRemoveSubscribersGroup: canRemoveSubscribersGroup ?? 123 ,
191
191
streamWeeklyTraffic: streamWeeklyTraffic,
192
192
);
You can’t perform that action at this time.
0 commit comments