Doctor Free Slots implemented
parent
ca7b4534a8
commit
e34da6485b
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,168 @@
|
|||||||
|
class DoctorList {
|
||||||
|
int clinicID;
|
||||||
|
String clinicName;
|
||||||
|
String doctorTitle;
|
||||||
|
int iD;
|
||||||
|
String name;
|
||||||
|
int projectID;
|
||||||
|
String projectName;
|
||||||
|
int actualDoctorRate;
|
||||||
|
int clinicRoomNo;
|
||||||
|
Null date;
|
||||||
|
Null dayName;
|
||||||
|
int doctorID;
|
||||||
|
String doctorImageURL;
|
||||||
|
Null doctorProfile;
|
||||||
|
Null doctorProfileInfo;
|
||||||
|
int doctorRate;
|
||||||
|
int gender;
|
||||||
|
String genderDescription;
|
||||||
|
bool isAppointmentAllowed;
|
||||||
|
bool isDoctorAllowVedioCall;
|
||||||
|
bool isDoctorDummy;
|
||||||
|
bool isLiveCare;
|
||||||
|
String latitude;
|
||||||
|
String longitude;
|
||||||
|
String nationalityFlagURL;
|
||||||
|
String nationalityID;
|
||||||
|
String nationalityName;
|
||||||
|
Null nearestFreeSlot;
|
||||||
|
int noOfPatientsRate;
|
||||||
|
Null originalClinicID;
|
||||||
|
int personRate;
|
||||||
|
int projectDistanceInKiloMeters;
|
||||||
|
String qR;
|
||||||
|
Null qRString;
|
||||||
|
int rateNumber;
|
||||||
|
Null serviceID;
|
||||||
|
String setupID;
|
||||||
|
List<String> speciality;
|
||||||
|
Null workingHours;
|
||||||
|
|
||||||
|
DoctorList(
|
||||||
|
{this.clinicID,
|
||||||
|
this.clinicName,
|
||||||
|
this.doctorTitle,
|
||||||
|
this.iD,
|
||||||
|
this.name,
|
||||||
|
this.projectID,
|
||||||
|
this.projectName,
|
||||||
|
this.actualDoctorRate,
|
||||||
|
this.clinicRoomNo,
|
||||||
|
this.date,
|
||||||
|
this.dayName,
|
||||||
|
this.doctorID,
|
||||||
|
this.doctorImageURL,
|
||||||
|
this.doctorProfile,
|
||||||
|
this.doctorProfileInfo,
|
||||||
|
this.doctorRate,
|
||||||
|
this.gender,
|
||||||
|
this.genderDescription,
|
||||||
|
this.isAppointmentAllowed,
|
||||||
|
this.isDoctorAllowVedioCall,
|
||||||
|
this.isDoctorDummy,
|
||||||
|
this.isLiveCare,
|
||||||
|
this.latitude,
|
||||||
|
this.longitude,
|
||||||
|
this.nationalityFlagURL,
|
||||||
|
this.nationalityID,
|
||||||
|
this.nationalityName,
|
||||||
|
this.nearestFreeSlot,
|
||||||
|
this.noOfPatientsRate,
|
||||||
|
this.originalClinicID,
|
||||||
|
this.personRate,
|
||||||
|
this.projectDistanceInKiloMeters,
|
||||||
|
this.qR,
|
||||||
|
this.qRString,
|
||||||
|
this.rateNumber,
|
||||||
|
this.serviceID,
|
||||||
|
this.setupID,
|
||||||
|
this.speciality,
|
||||||
|
this.workingHours});
|
||||||
|
|
||||||
|
DoctorList.fromJson(Map<String, dynamic> json) {
|
||||||
|
clinicID = json['ClinicID'];
|
||||||
|
clinicName = json['ClinicName'];
|
||||||
|
doctorTitle = json['DoctorTitle'];
|
||||||
|
iD = json['ID'];
|
||||||
|
name = json['Name'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
projectName = json['ProjectName'];
|
||||||
|
actualDoctorRate = json['ActualDoctorRate'];
|
||||||
|
clinicRoomNo = json['ClinicRoomNo'];
|
||||||
|
date = json['Date'];
|
||||||
|
dayName = json['DayName'];
|
||||||
|
doctorID = json['DoctorID'];
|
||||||
|
doctorImageURL = json['DoctorImageURL'];
|
||||||
|
doctorProfile = json['DoctorProfile'];
|
||||||
|
doctorProfileInfo = json['DoctorProfileInfo'];
|
||||||
|
doctorRate = json['DoctorRate'];
|
||||||
|
gender = json['Gender'];
|
||||||
|
genderDescription = json['GenderDescription'];
|
||||||
|
isAppointmentAllowed = json['IsAppointmentAllowed'];
|
||||||
|
isDoctorAllowVedioCall = json['IsDoctorAllowVedioCall'];
|
||||||
|
isDoctorDummy = json['IsDoctorDummy'];
|
||||||
|
isLiveCare = json['IsLiveCare'];
|
||||||
|
latitude = json['Latitude'];
|
||||||
|
longitude = json['Longitude'];
|
||||||
|
nationalityFlagURL = json['NationalityFlagURL'];
|
||||||
|
nationalityID = json['NationalityID'];
|
||||||
|
nationalityName = json['NationalityName'];
|
||||||
|
nearestFreeSlot = json['NearestFreeSlot'];
|
||||||
|
noOfPatientsRate = json['NoOfPatientsRate'];
|
||||||
|
originalClinicID = json['OriginalClinicID'];
|
||||||
|
personRate = json['PersonRate'];
|
||||||
|
projectDistanceInKiloMeters = json['ProjectDistanceInKiloMeters'];
|
||||||
|
qR = json['QR'];
|
||||||
|
qRString = json['QRString'];
|
||||||
|
rateNumber = json['RateNumber'];
|
||||||
|
serviceID = json['ServiceID'];
|
||||||
|
setupID = json['SetupID'];
|
||||||
|
speciality = json['Speciality'].cast<String>();
|
||||||
|
workingHours = json['WorkingHours'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['ClinicID'] = this.clinicID;
|
||||||
|
data['ClinicName'] = this.clinicName;
|
||||||
|
data['DoctorTitle'] = this.doctorTitle;
|
||||||
|
data['ID'] = this.iD;
|
||||||
|
data['Name'] = this.name;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['ProjectName'] = this.projectName;
|
||||||
|
data['ActualDoctorRate'] = this.actualDoctorRate;
|
||||||
|
data['ClinicRoomNo'] = this.clinicRoomNo;
|
||||||
|
data['Date'] = this.date;
|
||||||
|
data['DayName'] = this.dayName;
|
||||||
|
data['DoctorID'] = this.doctorID;
|
||||||
|
data['DoctorImageURL'] = this.doctorImageURL;
|
||||||
|
data['DoctorProfile'] = this.doctorProfile;
|
||||||
|
data['DoctorProfileInfo'] = this.doctorProfileInfo;
|
||||||
|
data['DoctorRate'] = this.doctorRate;
|
||||||
|
data['Gender'] = this.gender;
|
||||||
|
data['GenderDescription'] = this.genderDescription;
|
||||||
|
data['IsAppointmentAllowed'] = this.isAppointmentAllowed;
|
||||||
|
data['IsDoctorAllowVedioCall'] = this.isDoctorAllowVedioCall;
|
||||||
|
data['IsDoctorDummy'] = this.isDoctorDummy;
|
||||||
|
data['IsLiveCare'] = this.isLiveCare;
|
||||||
|
data['Latitude'] = this.latitude;
|
||||||
|
data['Longitude'] = this.longitude;
|
||||||
|
data['NationalityFlagURL'] = this.nationalityFlagURL;
|
||||||
|
data['NationalityID'] = this.nationalityID;
|
||||||
|
data['NationalityName'] = this.nationalityName;
|
||||||
|
data['NearestFreeSlot'] = this.nearestFreeSlot;
|
||||||
|
data['NoOfPatientsRate'] = this.noOfPatientsRate;
|
||||||
|
data['OriginalClinicID'] = this.originalClinicID;
|
||||||
|
data['PersonRate'] = this.personRate;
|
||||||
|
data['ProjectDistanceInKiloMeters'] = this.projectDistanceInKiloMeters;
|
||||||
|
data['QR'] = this.qR;
|
||||||
|
data['QRString'] = this.qRString;
|
||||||
|
data['RateNumber'] = this.rateNumber;
|
||||||
|
data['ServiceID'] = this.serviceID;
|
||||||
|
data['SetupID'] = this.setupID;
|
||||||
|
data['Speciality'] = this.speciality;
|
||||||
|
data['WorkingHours'] = this.workingHours;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,176 @@
|
|||||||
|
class DoctorProfileList {
|
||||||
|
int doctorID;
|
||||||
|
String doctorName;
|
||||||
|
Null doctorNameN;
|
||||||
|
int clinicID;
|
||||||
|
String clinicDescription;
|
||||||
|
Null clinicDescriptionN;
|
||||||
|
Null licenseExpiry;
|
||||||
|
int employmentType;
|
||||||
|
Null setupID;
|
||||||
|
int projectID;
|
||||||
|
String projectName;
|
||||||
|
String nationalityID;
|
||||||
|
String nationalityName;
|
||||||
|
Null nationalityNameN;
|
||||||
|
int gender;
|
||||||
|
String genderDescription;
|
||||||
|
Null genderDescriptionN;
|
||||||
|
Null doctorTitle;
|
||||||
|
Null projectNameN;
|
||||||
|
bool isAllowWaitList;
|
||||||
|
String titleDescription;
|
||||||
|
Null titleDescriptionN;
|
||||||
|
Null isRegistered;
|
||||||
|
Null isDoctorDummy;
|
||||||
|
bool isActive;
|
||||||
|
Null isDoctorAppointmentDisplayed;
|
||||||
|
bool doctorClinicActive;
|
||||||
|
Null isbookingAllowed;
|
||||||
|
String doctorCases;
|
||||||
|
Null doctorPicture;
|
||||||
|
String doctorProfileInfo;
|
||||||
|
List<String> specialty;
|
||||||
|
int actualDoctorRate;
|
||||||
|
String doctorImageURL;
|
||||||
|
int doctorRate;
|
||||||
|
String doctorTitleForProfile;
|
||||||
|
bool isAppointmentAllowed;
|
||||||
|
String nationalityFlagURL;
|
||||||
|
int noOfPatientsRate;
|
||||||
|
String qR;
|
||||||
|
int serviceID;
|
||||||
|
|
||||||
|
DoctorProfileList(
|
||||||
|
{this.doctorID,
|
||||||
|
this.doctorName,
|
||||||
|
this.doctorNameN,
|
||||||
|
this.clinicID,
|
||||||
|
this.clinicDescription,
|
||||||
|
this.clinicDescriptionN,
|
||||||
|
this.licenseExpiry,
|
||||||
|
this.employmentType,
|
||||||
|
this.setupID,
|
||||||
|
this.projectID,
|
||||||
|
this.projectName,
|
||||||
|
this.nationalityID,
|
||||||
|
this.nationalityName,
|
||||||
|
this.nationalityNameN,
|
||||||
|
this.gender,
|
||||||
|
this.genderDescription,
|
||||||
|
this.genderDescriptionN,
|
||||||
|
this.doctorTitle,
|
||||||
|
this.projectNameN,
|
||||||
|
this.isAllowWaitList,
|
||||||
|
this.titleDescription,
|
||||||
|
this.titleDescriptionN,
|
||||||
|
this.isRegistered,
|
||||||
|
this.isDoctorDummy,
|
||||||
|
this.isActive,
|
||||||
|
this.isDoctorAppointmentDisplayed,
|
||||||
|
this.doctorClinicActive,
|
||||||
|
this.isbookingAllowed,
|
||||||
|
this.doctorCases,
|
||||||
|
this.doctorPicture,
|
||||||
|
this.doctorProfileInfo,
|
||||||
|
this.specialty,
|
||||||
|
this.actualDoctorRate,
|
||||||
|
this.doctorImageURL,
|
||||||
|
this.doctorRate,
|
||||||
|
this.doctorTitleForProfile,
|
||||||
|
this.isAppointmentAllowed,
|
||||||
|
this.nationalityFlagURL,
|
||||||
|
this.noOfPatientsRate,
|
||||||
|
this.qR,
|
||||||
|
this.serviceID});
|
||||||
|
|
||||||
|
DoctorProfileList.fromJson(Map<String, dynamic> json) {
|
||||||
|
doctorID = json['DoctorID'];
|
||||||
|
doctorName = json['DoctorName'];
|
||||||
|
doctorNameN = json['DoctorNameN'];
|
||||||
|
clinicID = json['ClinicID'];
|
||||||
|
clinicDescription = json['ClinicDescription'];
|
||||||
|
clinicDescriptionN = json['ClinicDescriptionN'];
|
||||||
|
licenseExpiry = json['LicenseExpiry'];
|
||||||
|
employmentType = json['EmploymentType'];
|
||||||
|
setupID = json['SetupID'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
projectName = json['ProjectName'];
|
||||||
|
nationalityID = json['NationalityID'];
|
||||||
|
nationalityName = json['NationalityName'];
|
||||||
|
nationalityNameN = json['NationalityNameN'];
|
||||||
|
gender = json['Gender'];
|
||||||
|
genderDescription = json['Gender_Description'];
|
||||||
|
genderDescriptionN = json['Gender_DescriptionN'];
|
||||||
|
doctorTitle = json['DoctorTitle'];
|
||||||
|
projectNameN = json['ProjectNameN'];
|
||||||
|
isAllowWaitList = json['IsAllowWaitList'];
|
||||||
|
titleDescription = json['Title_Description'];
|
||||||
|
titleDescriptionN = json['Title_DescriptionN'];
|
||||||
|
isRegistered = json['IsRegistered'];
|
||||||
|
isDoctorDummy = json['IsDoctorDummy'];
|
||||||
|
isActive = json['IsActive'];
|
||||||
|
isDoctorAppointmentDisplayed = json['IsDoctorAppointmentDisplayed'];
|
||||||
|
doctorClinicActive = json['DoctorClinicActive'];
|
||||||
|
isbookingAllowed = json['IsbookingAllowed'];
|
||||||
|
doctorCases = json['DoctorCases'];
|
||||||
|
doctorPicture = json['DoctorPicture'];
|
||||||
|
doctorProfileInfo = json['DoctorProfileInfo'];
|
||||||
|
specialty = json['Specialty'].cast<String>();
|
||||||
|
actualDoctorRate = json['ActualDoctorRate'];
|
||||||
|
doctorImageURL = json['DoctorImageURL'];
|
||||||
|
doctorRate = json['DoctorRate'];
|
||||||
|
doctorTitleForProfile = json['DoctorTitleForProfile'];
|
||||||
|
isAppointmentAllowed = json['IsAppointmentAllowed'];
|
||||||
|
nationalityFlagURL = json['NationalityFlagURL'];
|
||||||
|
noOfPatientsRate = json['NoOfPatientsRate'];
|
||||||
|
qR = json['QR'];
|
||||||
|
serviceID = json['ServiceID'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['DoctorID'] = this.doctorID;
|
||||||
|
data['DoctorName'] = this.doctorName;
|
||||||
|
data['DoctorNameN'] = this.doctorNameN;
|
||||||
|
data['ClinicID'] = this.clinicID;
|
||||||
|
data['ClinicDescription'] = this.clinicDescription;
|
||||||
|
data['ClinicDescriptionN'] = this.clinicDescriptionN;
|
||||||
|
data['LicenseExpiry'] = this.licenseExpiry;
|
||||||
|
data['EmploymentType'] = this.employmentType;
|
||||||
|
data['SetupID'] = this.setupID;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['ProjectName'] = this.projectName;
|
||||||
|
data['NationalityID'] = this.nationalityID;
|
||||||
|
data['NationalityName'] = this.nationalityName;
|
||||||
|
data['NationalityNameN'] = this.nationalityNameN;
|
||||||
|
data['Gender'] = this.gender;
|
||||||
|
data['Gender_Description'] = this.genderDescription;
|
||||||
|
data['Gender_DescriptionN'] = this.genderDescriptionN;
|
||||||
|
data['DoctorTitle'] = this.doctorTitle;
|
||||||
|
data['ProjectNameN'] = this.projectNameN;
|
||||||
|
data['IsAllowWaitList'] = this.isAllowWaitList;
|
||||||
|
data['Title_Description'] = this.titleDescription;
|
||||||
|
data['Title_DescriptionN'] = this.titleDescriptionN;
|
||||||
|
data['IsRegistered'] = this.isRegistered;
|
||||||
|
data['IsDoctorDummy'] = this.isDoctorDummy;
|
||||||
|
data['IsActive'] = this.isActive;
|
||||||
|
data['IsDoctorAppointmentDisplayed'] = this.isDoctorAppointmentDisplayed;
|
||||||
|
data['DoctorClinicActive'] = this.doctorClinicActive;
|
||||||
|
data['IsbookingAllowed'] = this.isbookingAllowed;
|
||||||
|
data['DoctorCases'] = this.doctorCases;
|
||||||
|
data['DoctorPicture'] = this.doctorPicture;
|
||||||
|
data['DoctorProfileInfo'] = this.doctorProfileInfo;
|
||||||
|
data['Specialty'] = this.specialty;
|
||||||
|
data['ActualDoctorRate'] = this.actualDoctorRate;
|
||||||
|
data['DoctorImageURL'] = this.doctorImageURL;
|
||||||
|
data['DoctorRate'] = this.doctorRate;
|
||||||
|
data['DoctorTitleForProfile'] = this.doctorTitleForProfile;
|
||||||
|
data['IsAppointmentAllowed'] = this.isAppointmentAllowed;
|
||||||
|
data['NationalityFlagURL'] = this.nationalityFlagURL;
|
||||||
|
data['NoOfPatientsRate'] = this.noOfPatientsRate;
|
||||||
|
data['QR'] = this.qR;
|
||||||
|
data['ServiceID'] = this.serviceID;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
import 'package:diplomaticquarterapp/models/Request.dart';
|
||||||
|
|
||||||
|
class InsertAppointmentRequest extends Request {
|
||||||
|
String AppointmentDate; // ???? "/Date(1577750400000)/"
|
||||||
|
int DoctorID;
|
||||||
|
int InitialSlotDuration;
|
||||||
|
String SelectedTime;
|
||||||
|
String StartTime;
|
||||||
|
String EndTime;
|
||||||
|
String TempValue;
|
||||||
|
int VisitFor;
|
||||||
|
int VisitType;
|
||||||
|
bool IsVirtual;
|
||||||
|
List<String> GeneralProcedureList;
|
||||||
|
String DeviceToken;
|
||||||
|
String DeviceType;
|
||||||
|
bool IsForLiveCare;
|
||||||
|
String OriginalClinicID;
|
||||||
|
String OriginalProjectID;
|
||||||
|
}
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
|
||||||
|
class TimeSlot {
|
||||||
|
String isoTime;
|
||||||
|
DateTime start;
|
||||||
|
DateTime end;
|
||||||
|
|
||||||
|
TimeSlot({@required this.isoTime, @required this.start, @required this.end});
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue