import 'package:get/get.dart';

import '../models/e_provider_subscription_model.dart';
import '../models/subscription_package_model.dart';
import '../providers/laravel_provider.dart';

class SubscriptionRepository {
  late LaravelApiClient _laravelApiClient;

  SubscriptionRepository() {
    _laravelApiClient = Get.find<LaravelApiClient>();
  }

  Future<List<SubscriptionPackage>> getSubscriptionPackages() {
    return _laravelApiClient.getSubscriptionPackages();
  }

  Future<EProviderSubscription> cashEProviderSubscription(eProviderSubscription) {
    return _laravelApiClient.cashEProviderSubscription(eProviderSubscription);
  }

  Future<EProviderSubscription> walletEProviderSubscription(eProviderSubscription, wallet) {
    return _laravelApiClient.walletEProviderSubscription(eProviderSubscription, wallet);
  }

  Future<List<EProviderSubscription>> getEProviderSubscriptions() {
    return _laravelApiClient.getEProviderSubscriptions();
  }
}
