import 'package:tm_app/core/utils/result.dart';
import 'package:tm_app/data/services/liked_tenders_service.dart';
import 'package:tm_app/data/services/model/liked_tenders_response/liked_tenders_response.dart';
import 'package:tm_app/data/services/model/request_models/get_tenders_request_model/get_tenders_request_model.dart';
import 'package:tm_app/data/services/model/tender_approvals_response/tender_approvals_response.dart';
import 'package:tm_app/data/services/your_tenders_service.dart';

import '../services/model/request_models/tender_feedback_request_model/tender_feedback_request_model.dart';

class YourTendersRepository {
  final YourTendersService _yourTendersService;
  final LikedTendersService _likedTendersService;
  YourTendersRepository({
    required YourTendersService yourTendersService,
    required LikedTendersService likedTendersService,
  }) : _yourTendersService = yourTendersService,
       _likedTendersService = likedTendersService;

  Future<Result<TenderApprovalsResponse>> getTenders({
    required GetTendersRequestModel requestModel,
  }) {
    return _yourTendersService.getTenders(requestModel: requestModel);
  }

  Future<Result<LikedTendersResponse>> getTendersFeedback({
    required TenderFeedbackRequestModel requestModel,
  }) {
    return _likedTendersService.getLikedTenders(requestModel: requestModel);
  }
}
