We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ZulipStream
1 parent 98b4b2b commit 6ddfcb1Copy full SHA for 6ddfcb1
lib/api/model/model.dart
@@ -312,6 +312,14 @@ enum UserRole{
312
/// in <https://zulip.com/api/register-queue>.
313
@JsonSerializable(fieldRename: FieldRename.snake)
314
class ZulipStream {
315
+ // When adding a field to this class:
316
+ // * If a [ChannelUpdateEvent] can update it, be sure to add
317
+ // that case as a field of [ChannelUpdateEvent] or as a new value to
318
+ // [ChannelPropertyName] enum; based on what the stream-update API suggests.
319
+ // * If the field can never change for a given Zulip stream, mark it final.
320
+ // * (If it can change but [ChannelUpdateEvent] doesn't cover that,
321
+ // then that's a bug in the API; raise it in `#api design`.)
322
+
323
final int streamId;
324
String name;
325
String description;
0 commit comments