You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1001 B
Dart
27 lines
1001 B
Dart
4 years ago
|
import 'package:diplomaticquarterapp/config/config.dart';
|
||
|
import 'package:diplomaticquarterapp/core/model/eye/AppoimentAllHistoryResult.dart';
|
||
|
import 'package:diplomaticquarterapp/core/service/base_service.dart';
|
||
|
|
||
|
class EyeService extends BaseService {
|
||
|
List<AppoimentAllHistoryResultList> appoimentAllHistoryResultList = List();
|
||
|
|
||
|
getEyeMeasurement() async {
|
||
|
hasError = false;
|
||
|
super.error = "";
|
||
|
Map<String, dynamic> body = Map();
|
||
|
body['isDentalAllowedBackend'] = false;
|
||
|
body['IsIrisPrescription'] = true;
|
||
|
await baseAppClient.post(GET_PATIENT_APPOINTMENT_HISTORY,
|
||
|
onSuccess: (response, statusCode) async {
|
||
|
appoimentAllHistoryResultList.clear();
|
||
|
response['AppoimentAllHistoryResultList'].forEach((appoitment) {
|
||
|
appoimentAllHistoryResultList
|
||
|
.add(AppoimentAllHistoryResultList.fromJson(appoitment));
|
||
|
});
|
||
|
}, onFailure: (String error, int statusCode) {
|
||
|
hasError = true;
|
||
|
super.error = error;
|
||
|
}, body: body);
|
||
|
}
|
||
|
}
|