@@ -2,13 +2,13 @@ import '../api/model/events.dart';
2
2
import '../api/model/initial_snapshot.dart' ;
3
3
import '../api/model/model.dart' ;
4
4
5
- /// The portion of [PerAccountStore] for streams , topics, and stuff about them.
5
+ /// The portion of [PerAccountStore] for channels , topics, and stuff about them.
6
6
///
7
7
/// This type is useful for expressing the needs of other parts of the
8
8
/// implementation of [PerAccountStore] , to avoid circularity.
9
9
///
10
10
/// The data structures described here are implemented at [StreamStoreImpl] .
11
- mixin StreamStore {
11
+ mixin ChannelStore {
12
12
Map <int , ZulipStream > get streams;
13
13
Map <String , ZulipStream > get streamsByName;
14
14
Map <int , Subscription > get subscriptions;
@@ -67,12 +67,12 @@ mixin StreamStore {
67
67
}
68
68
}
69
69
70
- /// The implementation of [StreamStore ] that does the work.
70
+ /// The implementation of [ChannelStore ] that does the work.
71
71
///
72
72
/// Generally the only code that should need this class is [PerAccountStore]
73
73
/// itself. Other code accesses this functionality through [PerAccountStore] ,
74
- /// or through the mixin [StreamStore ] which describes its interface.
75
- class StreamStoreImpl with StreamStore {
74
+ /// or through the mixin [ChannelStore ] which describes its interface.
75
+ class StreamStoreImpl with ChannelStore {
76
76
factory StreamStoreImpl ({required InitialSnapshot initialSnapshot}) {
77
77
final subscriptions = Map .fromEntries (initialSnapshot.subscriptions.map (
78
78
(subscription) => MapEntry (subscription.streamId, subscription)));
0 commit comments