TF-886 Implement StoreAuthenticationInfo in repository and datasource

This commit is contained in:
dab246
2022-09-06 19:04:57 +07:00
committed by Dat H. Pham
parent 40d37fc37e
commit b95d294a3c
11 changed files with 76 additions and 15 deletions
@@ -0,0 +1,14 @@
import 'package:tmail_ui_user/features/caching/authentication_info_cache_client.dart';
import 'package:tmail_ui_user/features/login/data/model/authentication_info_cache.dart';
class AuthenticationInfoCacheManager {
final AuthenticationInfoCacheClient _authenticationInfoCacheClient;
AuthenticationInfoCacheManager(this._authenticationInfoCacheClient);
Future<void> storeAuthenticationInfo(AuthenticationInfoCache authenticationInfoCache) {
return _authenticationInfoCacheClient.insertItem(
AuthenticationInfoCache.keyCacheValue,
authenticationInfoCache);
}
}