import 'package:diplomaticquarterapp/core/enum/viewstate.dart';
import 'package:diplomaticquarterapp/core/model/packages_offers/responses/PackagesCartItemsResponseModel.dart';
import 'package:diplomaticquarterapp/core/model/packages_offers/responses/PackagesCategoriesResponseModel.dart';
import 'package:diplomaticquarterapp/core/model/packages_offers/responses/PackagesResponseModel.dart';
import 'package:diplomaticquarterapp/core/service/base_service.dart';
import 'package:diplomaticquarterapp/core/service/client/base_app_client.dart';
import 'package:diplomaticquarterapp/core/service/packages_offers/PackagesOffersServices.dart';
import 'package:diplomaticquarterapp/core/viewModels/base_view_model.dart';
import 'package:flutter/cupertino.dart';
import 'package:diplomaticquarterapp/locator.dart';

class OfferCategoriesViewModel extends BaseViewModel{
  OffersAndPackagesServices service = locator<OffersAndPackagesServices>();
  get categoryList => service.categoryList;
  get productList => service.categoryList;

}

class PackagesViewModel extends BaseViewModel {
  OffersAndPackagesServices service = locator<OffersAndPackagesServices>();
  List<PackagesCategoriesResponseModel> get categoryList => service.categoryList;
  List<PackagesResponseModel> get productList => service.productList;
  List<PackagesResponseModel> get latestOffersList => service.latestOffersList;
  List<PackagesResponseModel> get bestSellerList => service.bestSellerList;
  List<PackagesResponseModel> get bannersList => service.bannersList;
  List<PackagesCartItemsResponseModel> get cartItemList => service.cartItemList;


  String _cartItemCount = "";

  String get cartItemCount => _cartItemCount;

  set cartItemCount(String value) {
    _cartItemCount = value;
    notifyListeners();
  }
}
