import 'package:dartz/dartz.dart';
import 'package:superport/core/errors/failures.dart';
import 'package:superport/data/datasources/remote/dashboard_remote_datasource.dart';

abstract class DashboardService {
  Future<Either<Failure, Map<String, dynamic>>> getLicenseExpirySummary();
}

class DashboardServiceImpl implements DashboardService {
  final DashboardRemoteDataSource _remote;
  DashboardServiceImpl(this._remote);

  @override
  Future<Either<Failure, Map<String, dynamic>>> getLicenseExpirySummary() {
    return _remote.getLicenseExpirySummary();
  }
}

