aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/data/timeline.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-09 22:09:00 +0800
committercrupest <crupest@outlook.com>2020-08-09 22:09:00 +0800
commit75922bb053b752384efa9d58d2d0f77a2b446d1d (patch)
treee9a30e17fba6ddd0853082f160592cb8921aa8e9 /Timeline/ClientApp/src/app/data/timeline.ts
parent31f2c870cde09099bccab9560bac50be7db8d4d2 (diff)
downloadtimeline-75922bb053b752384efa9d58d2d0f77a2b446d1d.tar.gz
timeline-75922bb053b752384efa9d58d2d0f77a2b446d1d.tar.bz2
timeline-75922bb053b752384efa9d58d2d0f77a2b446d1d.zip
Rename SubscriptionHub to DataHub.
Diffstat (limited to 'Timeline/ClientApp/src/app/data/timeline.ts')
-rw-r--r--Timeline/ClientApp/src/app/data/timeline.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/Timeline/ClientApp/src/app/data/timeline.ts b/Timeline/ClientApp/src/app/data/timeline.ts
index aacb5f29..81cf20e9 100644
--- a/Timeline/ClientApp/src/app/data/timeline.ts
+++ b/Timeline/ClientApp/src/app/data/timeline.ts
@@ -7,7 +7,7 @@ import { uniqBy } from 'lodash';
import { convertError } from '../utilities/rxjs';
import { dataStorage, throwIfNotNetworkError } from './common';
-import { SubscriptionHub } from './SubscriptionHub';
+import { DataHub } from './DataHub';
import { UserAuthInfo, checkLogin, userService, userInfoService } from './user';
@@ -165,7 +165,7 @@ export class TimelineService {
}
}
- private _timelineHub = new SubscriptionHub<
+ private _timelineHub = new DataHub<
string,
| {
type: 'cache';
@@ -343,7 +343,7 @@ export class TimelineService {
}
}
- private _postsHub = new SubscriptionHub<
+ private _postsHub = new DataHub<
string,
{
type: 'cache' | 'offline' | 'synced' | 'forbid' | 'notexist';
@@ -476,7 +476,7 @@ export class TimelineService {
}
}
- private _postDataHub = new SubscriptionHub<
+ private _postDataHub = new DataHub<
{ timelineName: string; postId: number },
| { data: Blob; type: 'cache' | 'synced' | 'offline' }
| { data?: undefined; type: 'notexist' | 'offline' }