|
|
@ -79,12 +79,20 @@ class DoctorsListService extends BaseService {
|
|
|
|
Future<Map> getDoctorsListByName(String docName, BuildContext context) async {
|
|
|
|
Future<Map> getDoctorsListByName(String docName, BuildContext context) async {
|
|
|
|
Map<String, dynamic> request;
|
|
|
|
Map<String, dynamic> request;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double lat;
|
|
|
|
|
|
|
|
double long;
|
|
|
|
|
|
|
|
|
|
|
|
if (await this.sharedPref.getObject(USER_PROFILE) != null) {
|
|
|
|
if (await this.sharedPref.getObject(USER_PROFILE) != null) {
|
|
|
|
var data = AuthenticatedUser.fromJson(
|
|
|
|
var data = AuthenticatedUser.fromJson(
|
|
|
|
await this.sharedPref.getObject(USER_PROFILE));
|
|
|
|
await this.sharedPref.getObject(USER_PROFILE));
|
|
|
|
authUser = data;
|
|
|
|
authUser = data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (await this.sharedPref.getDouble(USER_LAT) != null && await this.sharedPref.getDouble(USER_LONG) != null) {
|
|
|
|
|
|
|
|
lat = await this.sharedPref.getDouble(USER_LAT);
|
|
|
|
|
|
|
|
long = await this.sharedPref.getDouble(USER_LONG);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var languageID = await sharedPref.getString(APP_LANGUAGE);
|
|
|
|
var languageID = await sharedPref.getString(APP_LANGUAGE);
|
|
|
|
Request req = appGlobal.getPublicRequest();
|
|
|
|
Request req = appGlobal.getPublicRequest();
|
|
|
|
request = {
|
|
|
|
request = {
|
|
|
@ -106,8 +114,8 @@ class DoctorsListService extends BaseService {
|
|
|
|
"gender": authUser.gender != null ? authUser.gender : 0,
|
|
|
|
"gender": authUser.gender != null ? authUser.gender : 0,
|
|
|
|
"age": authUser.age != null ? authUser.age : 0,
|
|
|
|
"age": authUser.age != null ? authUser.age : 0,
|
|
|
|
"IsGetNearAppointment": false,
|
|
|
|
"IsGetNearAppointment": false,
|
|
|
|
"Latitude": 0,
|
|
|
|
"Latitude": lat,
|
|
|
|
"Longitude": 0,
|
|
|
|
"Longitude": long,
|
|
|
|
"License": true
|
|
|
|
"License": true
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|