diff options
author | crupest <crupest@outlook.com> | 2020-08-09 22:09:00 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-09 22:09:00 +0800 |
commit | 0db6959fbedd5dbb8ec41b53d3427b0e8a5973a5 (patch) | |
tree | 4552dffed7785340a75421294970339df8732b03 /Timeline/ClientApp/src/app/data/timeline.ts | |
parent | d882b22f2e870fa152f72b85cfd520bc16fcd34a (diff) | |
download | timeline-0db6959fbedd5dbb8ec41b53d3427b0e8a5973a5.tar.gz timeline-0db6959fbedd5dbb8ec41b53d3427b0e8a5973a5.tar.bz2 timeline-0db6959fbedd5dbb8ec41b53d3427b0e8a5973a5.zip |
Rename SubscriptionHub to DataHub.
Diffstat (limited to 'Timeline/ClientApp/src/app/data/timeline.ts')
-rw-r--r-- | Timeline/ClientApp/src/app/data/timeline.ts | 8 |
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' }
|