Store and get fcm cache by AccountId

(cherry picked from commit e327dff45a4fc67d0c5a2d2afe64fc4673e2eac1)
This commit is contained in:
dab246
2023-04-25 18:15:02 +07:00
committed by Dat Vu
parent eb27022a08
commit 550752a2a4
23 changed files with 130 additions and 107 deletions
@@ -75,18 +75,18 @@ class FCMRepositoryImpl extends FCMRepository {
}
@override
Future<bool> storeStateToRefresh(TypeName typeName, jmap.State newState) {
return _fcmDatasource[DataSourceType.local]!.storeStateToRefresh(typeName, newState);
Future<void> storeStateToRefresh(AccountId accountId, TypeName typeName, jmap.State newState) {
return _fcmDatasource[DataSourceType.local]!.storeStateToRefresh(accountId, typeName, newState);
}
@override
Future<jmap.State> getStateToRefresh(TypeName typeName) {
return _fcmDatasource[DataSourceType.local]!.getStateToRefresh(typeName);
Future<jmap.State> getStateToRefresh(AccountId accountId, TypeName typeName) {
return _fcmDatasource[DataSourceType.local]!.getStateToRefresh(accountId, typeName);
}
@override
Future<bool> deleteStateToRefresh(TypeName typeName) {
return _fcmDatasource[DataSourceType.local]!.deleteStateToRefresh(typeName);
Future<void> deleteStateToRefresh(AccountId accountId, TypeName typeName) {
return _fcmDatasource[DataSourceType.local]!.deleteStateToRefresh(accountId, typeName);
}
@override