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 | 75922bb053b752384efa9d58d2d0f77a2b446d1d (patch) | |
tree | e9a30e17fba6ddd0853082f160592cb8921aa8e9 /Timeline/ClientApp/src/app/data/user.ts | |
parent | 31f2c870cde09099bccab9560bac50be7db8d4d2 (diff) | |
download | timeline-75922bb053b752384efa9d58d2d0f77a2b446d1d.tar.gz timeline-75922bb053b752384efa9d58d2d0f77a2b446d1d.tar.bz2 timeline-75922bb053b752384efa9d58d2d0f77a2b446d1d.zip |
Rename SubscriptionHub to DataHub.
Diffstat (limited to 'Timeline/ClientApp/src/app/data/user.ts')
-rw-r--r-- | Timeline/ClientApp/src/app/data/user.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Timeline/ClientApp/src/app/data/user.ts b/Timeline/ClientApp/src/app/data/user.ts index d19a6323..419cff18 100644 --- a/Timeline/ClientApp/src/app/data/user.ts +++ b/Timeline/ClientApp/src/app/data/user.ts @@ -7,7 +7,7 @@ import { convertError } from '../utilities/rxjs'; import { pushAlert } from '../common/alert-service';
import { dataStorage, throwIfNotNetworkError } from './common';
-import { SubscriptionHub } from './SubscriptionHub';
+import { DataHub } from './DataHub';
import { HttpNetworkError, BlobWithEtag, NotModified } from '../http/common';
import {
@@ -271,7 +271,7 @@ export class UserInfoService { }
}
- private _userHub = new SubscriptionHub<
+ private _userHub = new DataHub<
string,
| { user: User; type: 'cache' | 'synced' | 'offline' }
| { user?: undefined; type: 'notexist' | 'offline' }
@@ -336,7 +336,7 @@ export class UserInfoService { }
}
- private _avatarHub = new SubscriptionHub<
+ private _avatarHub = new DataHub<
string,
| { data: Blob; type: 'cache' | 'synced' | 'offline' }
| { data?: undefined; type: 'notexist' | 'offline' }
|