mirror of
https://github.com/supanadit/geo-smart-app.git
synced 2024-11-10 10:02:20 +00:00
21 lines
552 B
Dart
21 lines
552 B
Dart
|
import 'package:geo_app/model/response.dart';
|
||
|
import 'package:geo_app/model/setting.dart';
|
||
|
import 'package:geo_app/provider/position_provider.dart';
|
||
|
|
||
|
class PositionRepository {
|
||
|
PositionProvider _provider;
|
||
|
SettingModel _settingModel;
|
||
|
|
||
|
PositionRepository(this._settingModel) {
|
||
|
this._provider = PositionProvider(this._settingModel);
|
||
|
}
|
||
|
|
||
|
Future<ResponseModel> sendPosition(String lat, String lng) {
|
||
|
return this._provider.sendPosition(lat, lng);
|
||
|
}
|
||
|
|
||
|
Future<ResponseModel> stopTracking() {
|
||
|
return this._provider.stopTracking();
|
||
|
}
|
||
|
}
|