TF-3985 Navigate Paywall url when click Increase your space button

This commit is contained in:
dab246
2025-09-09 15:33:50 +07:00
committed by Dat H. Pham
parent c3ee166c00
commit f373cd3d37
22 changed files with 463 additions and 5 deletions
@@ -0,0 +1,18 @@
import 'package:tmail_ui_user/features/mailbox_dashboard/data/network/linagora_ecosystem_api.dart';
import 'package:tmail_ui_user/features/paywall/data/datasource/paywall_datasource.dart';
import 'package:tmail_ui_user/features/paywall/domain/model/paywall_url_pattern.dart';
import 'package:tmail_ui_user/main/exceptions/exception_thrower.dart';
class PaywallDatasourceImpl extends PaywallDatasource {
final LinagoraEcosystemApi _linagoraEcosystemApi;
final ExceptionThrower _exceptionThrower;
PaywallDatasourceImpl(this._linagoraEcosystemApi, this._exceptionThrower);
@override
Future<PaywallUrlPattern> getPaywallUrl(String baseUrl) {
return Future.sync(() async {
return await _linagoraEcosystemApi.getPaywallUrl(baseUrl);
}).catchError(_exceptionThrower.throwException);
}
}