Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:ementodo/core/resources/data_state.dart';
- import 'package:ementodo/core/use_case/use_case.dart';
- import 'package:ementodo/features/feature_weather/domain/entities/current_city_entity.dart';
- import 'package:ementodo/features/feature_weather/domain/repositories/weather_repository.dart';
- class GetCurrentWeatherUseCase
- extends UseCase<DataState<CurrentCityEntity>, String> {
- final WeatherRepository weatherRepository;
- GetCurrentWeatherUseCase(this.weatherRepository);
- @override
- Future<DataState<CurrentCityEntity>> call(String params) {
- return weatherRepository.fetchCurrentWeatherData(params);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement