|
|
|
|
import 'package:diplomaticquarterapp/models/Request.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
|
|
|
|
|
import 'dart:io';
|
|
|
|
|
|
|
|
|
|
const MAX_SMALL_SCREEN = 660;
|
|
|
|
|
//const BASE_URL = 'https://hmgwebservices.com/Services';
|
|
|
|
|
|
|
|
|
|
const GET_PROJECT = '/Lists.svc/REST/GetProject';
|
|
|
|
|
const BASE_URL = 'https://hmgwebservices.com/'; // Production Environment
|
|
|
|
|
//const BASE_URL = 'https://uat.hmgwebservices.com/'; // UAT Environment
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//URL to get clinic list
|
|
|
|
|
const GET_CLINICS_LIST_URL = "Services/lists.svc/REST/GetClinicCentralized";
|
|
|
|
|
|
|
|
|
|
//URL to get doctors list
|
|
|
|
|
const GET_DOCTORS_LIST_URL = "Services/Doctors.svc/REST/SearchDoctorsByTime";
|
|
|
|
|
|
|
|
|
|
//URL to get doctor profile
|
|
|
|
|
const GET_DOCTOR_PROFILE = "Services/Doctors.svc/REST/GetDocProfiles";
|
|
|
|
|
|
|
|
|
|
//URL to get doctor free slots
|
|
|
|
|
const GET_DOCTOR_FREE_SLOTS = "Services/Doctors.svc/REST/GetDoctorFreeSlots";
|
|
|
|
|
|
|
|
|
|
//URL to insert appointment
|
|
|
|
|
const INSERT_SPECIFIC_APPOINTMENT = "Services/Doctors.svc/REST/InsertSpecificAppointment";
|
|
|
|
|
|
|
|
|
|
//URL to get patient share
|
|
|
|
|
const GET_PATIENT_SHARE = "Services/Doctors.svc/REST/GetCheckinScreenAppointmentDetailsByAppointmentNO";
|
|
|
|
|
|
|
|
|
|
//URL to get patient appointment history
|
|
|
|
|
const GET_PATIENT_APPOINTMENT_HISTORY = "Services/Doctors.svc/REST/PateintHasAppoimentHistory";
|
|
|
|
|
|
|
|
|
|
//URL to confirm appointment
|
|
|
|
|
const CONFIRM_APPOINTMENT = "Services/MobileNotifications.svc/REST/ConfirmAppointment";
|
|
|
|
|
|
|
|
|
|
//URL to cancel appointment
|
|
|
|
|
const CANCEL_APPOINTMENT = "Services/Doctors.svc/REST/CancelAppointment";
|
|
|
|
|
|
|
|
|
|
const GET_PHARMCY_ITEMS = "/Lists.svc/REST/GetPharmcyItems_Region";
|
|
|
|
|
const GET_PHARMACY_LIST = "/Patients.svc/REST/GetPharmcyList";
|
|
|
|
|
|
|
|
|
|
class AppGlobal {
|
|
|
|
|
static var context;
|
|
|
|
|
AppSharedPreferences sharedPref = AppSharedPreferences();
|
|
|
|
|
|
|
|
|
|
Request getPublicRequest() {
|
|
|
|
|
Request request = new Request();
|
|
|
|
|
request.VersionID = 5.5; //3.6;
|
|
|
|
|
request.Channel = 3;
|
|
|
|
|
request.IPAdress = "10.20.10.20";
|
|
|
|
|
request.generalid = 'Cs2020@2016\$2958';
|
|
|
|
|
request.PatientOutSA = 0;
|
|
|
|
|
request.SessionID = "wEVNbagIkaNhGECWZjHaA";
|
|
|
|
|
request.TokenID = "@dm!n";
|
|
|
|
|
request.isDentalAllowedBackend = false;
|
|
|
|
|
request.DeviceTypeID = Platform.isIOS ? 1 : 2;
|
|
|
|
|
|
|
|
|
|
return request;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const CHANNEL = 3;
|
|
|
|
|
const GENERAL_ID = 'Cs2020@2016\$2958';
|
|
|
|
|
const IP_ADDRESS = '10.20.10.20';
|
|
|
|
|
const VERSION_ID = 5.5;
|