feat : location details
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:rasadyar_inspection/data/model/response/hatching_details/hatching_details.dart';
|
||||
import 'package:rasadyar_inspection/data/model/response/poultry_location/poultry_location_model.dart';
|
||||
|
||||
abstract class InspectionRepository {
|
||||
@@ -21,4 +22,9 @@ abstract class InspectionRepository {
|
||||
double? centerLng,
|
||||
double? radius,
|
||||
});
|
||||
|
||||
Future<List<HatchingDetails>?> getHatchingDetails({
|
||||
String? code,
|
||||
bool? active,
|
||||
});
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:rasadyar_inspection/data/data_source/remote/inspection/inspection_remote.dart';
|
||||
import 'package:rasadyar_inspection/data/model/response/hatching_details/hatching_details.dart';
|
||||
import 'package:rasadyar_inspection/data/model/response/poultry_location/poultry_location_model.dart';
|
||||
import 'package:rasadyar_inspection/data/repositories/inspection/inspection_repository.dart';
|
||||
|
||||
@@ -33,4 +34,9 @@ class InspectionRepositoryImp implements InspectionRepository {
|
||||
value: value,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<List<HatchingDetails>?> getHatchingDetails({String? code, bool? active}) async {
|
||||
return await remoteDataSource.getHatchingDetails(code: code, active: active ?? false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user