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.
28 lines
1.1 KiB
Dart
28 lines
1.1 KiB
Dart
import 'package:doctor_app_flutter/config/config.dart';
|
|
import 'package:doctor_app_flutter/core/model/live_care/PendingPatientERForDoctorAppRequestModel.dart';
|
|
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
|
|
class LiveCarePatientServices extends BaseService{
|
|
List<PatiantInformtion> _patientList = [];
|
|
List<PatiantInformtion> get patientList => _patientList;
|
|
|
|
Future getPendingPatientERForDoctorApp(PendingPatientERForDoctorAppRequestModel pendingPatientERForDoctorAppRequestModel) async{
|
|
hasError = false;
|
|
await baseAppClient.post(
|
|
GET_PENDING_PATIENT_ER_FOR_DOCTOR_APP,
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
_patientList.clear();
|
|
response['List_PendingPatientList'].forEach((v) {
|
|
_patientList.add(PatiantInformtion.fromJson(v));
|
|
});
|
|
},
|
|
onFailure: (String error, int statusCode) {
|
|
hasError = true;
|
|
super.error = error;
|
|
},
|
|
body: pendingPatientERForDoctorAppRequestModel.toJson(),
|
|
);
|
|
}
|
|
|
|
} |