family file changes
parent
6af7ac54ba
commit
621870eca1
@ -0,0 +1,347 @@
|
||||
class GetAllSharedRecordsByStatusResponse {
|
||||
Null date;
|
||||
int languageID;
|
||||
int serviceName;
|
||||
Null time;
|
||||
Null androidLink;
|
||||
Null authenticationTokenID;
|
||||
Null data;
|
||||
bool dataw;
|
||||
int dietType;
|
||||
Null errorCode;
|
||||
Null errorEndUserMessage;
|
||||
Null errorEndUserMessageN;
|
||||
Null errorMessage;
|
||||
int errorType;
|
||||
int foodCategory;
|
||||
Null iOSLink;
|
||||
bool isAuthenticated;
|
||||
int mealOrderStatus;
|
||||
int mealType;
|
||||
int messageStatus;
|
||||
int numberOfResultRecords;
|
||||
Null patientBlodType;
|
||||
Null successMsg;
|
||||
Null successMsgN;
|
||||
Null doctorInformationList;
|
||||
Null getAllPendingRecordsList;
|
||||
List<GetAllSharedRecordsByStatusList> getAllSharedRecordsByStatusList;
|
||||
Null getResponseFileList;
|
||||
bool isHMGPatient;
|
||||
bool isLoginSuccessfully;
|
||||
bool isNeedUpdateIdintificationNo;
|
||||
bool kioskSendSMS;
|
||||
Null list;
|
||||
Null listAskHabibMobileLoginInfo;
|
||||
Null listAskHabibPatientFile;
|
||||
Null listMergeFiles;
|
||||
Null listMobileLoginInfo;
|
||||
Null listPatientCount;
|
||||
Null logInTokenID;
|
||||
Null mohemmPrivilegeList;
|
||||
int pateintID;
|
||||
Null patientBloodType;
|
||||
Null patientERDriverFile;
|
||||
Null patientERDriverFileList;
|
||||
bool patientHasFile;
|
||||
Null patientMergedIDs;
|
||||
bool patientOutSA;
|
||||
int patientShareRequestID;
|
||||
int patientType;
|
||||
int projectIDOut;
|
||||
Null returnMessage;
|
||||
bool sMSLoginRequired;
|
||||
Null servicePrivilegeList;
|
||||
Null sharePatientName;
|
||||
Null verificationCode;
|
||||
Null email;
|
||||
Null errorList;
|
||||
bool hasFile;
|
||||
bool isActiveCode;
|
||||
bool isMerged;
|
||||
bool isNeedUserAgreement;
|
||||
bool isSMSSent;
|
||||
Null memberList;
|
||||
Null message;
|
||||
int statusCode;
|
||||
|
||||
GetAllSharedRecordsByStatusResponse(
|
||||
{this.date,
|
||||
this.languageID,
|
||||
this.serviceName,
|
||||
this.time,
|
||||
this.androidLink,
|
||||
this.authenticationTokenID,
|
||||
this.data,
|
||||
this.dataw,
|
||||
this.dietType,
|
||||
this.errorCode,
|
||||
this.errorEndUserMessage,
|
||||
this.errorEndUserMessageN,
|
||||
this.errorMessage,
|
||||
this.errorType,
|
||||
this.foodCategory,
|
||||
this.iOSLink,
|
||||
this.isAuthenticated,
|
||||
this.mealOrderStatus,
|
||||
this.mealType,
|
||||
this.messageStatus,
|
||||
this.numberOfResultRecords,
|
||||
this.patientBlodType,
|
||||
this.successMsg,
|
||||
this.successMsgN,
|
||||
this.doctorInformationList,
|
||||
this.getAllPendingRecordsList,
|
||||
this.getAllSharedRecordsByStatusList,
|
||||
this.getResponseFileList,
|
||||
this.isHMGPatient,
|
||||
this.isLoginSuccessfully,
|
||||
this.isNeedUpdateIdintificationNo,
|
||||
this.kioskSendSMS,
|
||||
this.list,
|
||||
this.listAskHabibMobileLoginInfo,
|
||||
this.listAskHabibPatientFile,
|
||||
this.listMergeFiles,
|
||||
this.listMobileLoginInfo,
|
||||
this.listPatientCount,
|
||||
this.logInTokenID,
|
||||
this.mohemmPrivilegeList,
|
||||
this.pateintID,
|
||||
this.patientBloodType,
|
||||
this.patientERDriverFile,
|
||||
this.patientERDriverFileList,
|
||||
this.patientHasFile,
|
||||
this.patientMergedIDs,
|
||||
this.patientOutSA,
|
||||
this.patientShareRequestID,
|
||||
this.patientType,
|
||||
this.projectIDOut,
|
||||
this.returnMessage,
|
||||
this.sMSLoginRequired,
|
||||
this.servicePrivilegeList,
|
||||
this.sharePatientName,
|
||||
this.verificationCode,
|
||||
this.email,
|
||||
this.errorList,
|
||||
this.hasFile,
|
||||
this.isActiveCode,
|
||||
this.isMerged,
|
||||
this.isNeedUserAgreement,
|
||||
this.isSMSSent,
|
||||
this.memberList,
|
||||
this.message,
|
||||
this.statusCode});
|
||||
|
||||
GetAllSharedRecordsByStatusResponse.fromJson(Map<String, dynamic> json) {
|
||||
date = json['Date'];
|
||||
languageID = json['LanguageID'];
|
||||
serviceName = json['ServiceName'];
|
||||
time = json['Time'];
|
||||
androidLink = json['AndroidLink'];
|
||||
authenticationTokenID = json['AuthenticationTokenID'];
|
||||
data = json['Data'];
|
||||
dataw = json['Dataw'];
|
||||
dietType = json['DietType'];
|
||||
errorCode = json['ErrorCode'];
|
||||
errorEndUserMessage = json['ErrorEndUserMessage'];
|
||||
errorEndUserMessageN = json['ErrorEndUserMessageN'];
|
||||
errorMessage = json['ErrorMessage'];
|
||||
errorType = json['ErrorType'];
|
||||
foodCategory = json['FoodCategory'];
|
||||
iOSLink = json['IOSLink'];
|
||||
isAuthenticated = json['IsAuthenticated'];
|
||||
mealOrderStatus = json['MealOrderStatus'];
|
||||
mealType = json['MealType'];
|
||||
messageStatus = json['MessageStatus'];
|
||||
numberOfResultRecords = json['NumberOfResultRecords'];
|
||||
patientBlodType = json['PatientBlodType'];
|
||||
successMsg = json['SuccessMsg'];
|
||||
successMsgN = json['SuccessMsgN'];
|
||||
doctorInformationList = json['DoctorInformation_List'];
|
||||
getAllPendingRecordsList = json['GetAllPendingRecordsList'];
|
||||
if (json['GetAllSharedRecordsByStatusList'] != null) {
|
||||
getAllSharedRecordsByStatusList =
|
||||
new List<GetAllSharedRecordsByStatusList>();
|
||||
json['GetAllSharedRecordsByStatusList'].forEach((v) {
|
||||
getAllSharedRecordsByStatusList
|
||||
.add(new GetAllSharedRecordsByStatusList.fromJson(v));
|
||||
});
|
||||
}
|
||||
getResponseFileList = json['GetResponseFileList'];
|
||||
isHMGPatient = json['IsHMGPatient'];
|
||||
isLoginSuccessfully = json['IsLoginSuccessfully'];
|
||||
isNeedUpdateIdintificationNo = json['IsNeedUpdateIdintificationNo'];
|
||||
kioskSendSMS = json['KioskSendSMS'];
|
||||
list = json['List'];
|
||||
listAskHabibMobileLoginInfo = json['List_AskHabibMobileLoginInfo'];
|
||||
listAskHabibPatientFile = json['List_AskHabibPatientFile'];
|
||||
listMergeFiles = json['List_MergeFiles'];
|
||||
listMobileLoginInfo = json['List_MobileLoginInfo'];
|
||||
listPatientCount = json['List_PatientCount'];
|
||||
logInTokenID = json['LogInTokenID'];
|
||||
mohemmPrivilegeList = json['MohemmPrivilege_List'];
|
||||
pateintID = json['PateintID'];
|
||||
patientBloodType = json['PatientBloodType'];
|
||||
patientERDriverFile = json['PatientER_DriverFile'];
|
||||
patientERDriverFileList = json['PatientER_DriverFileList'];
|
||||
patientHasFile = json['PatientHasFile'];
|
||||
patientMergedIDs = json['PatientMergedIDs'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
patientShareRequestID = json['PatientShareRequestID'];
|
||||
patientType = json['PatientType'];
|
||||
projectIDOut = json['ProjectIDOut'];
|
||||
returnMessage = json['ReturnMessage'];
|
||||
sMSLoginRequired = json['SMSLoginRequired'];
|
||||
servicePrivilegeList = json['ServicePrivilege_List'];
|
||||
sharePatientName = json['SharePatientName'];
|
||||
verificationCode = json['VerificationCode'];
|
||||
email = json['email'];
|
||||
errorList = json['errorList'];
|
||||
hasFile = json['hasFile'];
|
||||
isActiveCode = json['isActiveCode'];
|
||||
isMerged = json['isMerged'];
|
||||
isNeedUserAgreement = json['isNeedUserAgreement'];
|
||||
isSMSSent = json['isSMSSent'];
|
||||
memberList = json['memberList'];
|
||||
message = json['message'];
|
||||
statusCode = json['statusCode'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['Date'] = this.date;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['ServiceName'] = this.serviceName;
|
||||
data['Time'] = this.time;
|
||||
data['AndroidLink'] = this.androidLink;
|
||||
data['AuthenticationTokenID'] = this.authenticationTokenID;
|
||||
data['Data'] = this.data;
|
||||
data['Dataw'] = this.dataw;
|
||||
data['DietType'] = this.dietType;
|
||||
data['ErrorCode'] = this.errorCode;
|
||||
data['ErrorEndUserMessage'] = this.errorEndUserMessage;
|
||||
data['ErrorEndUserMessageN'] = this.errorEndUserMessageN;
|
||||
data['ErrorMessage'] = this.errorMessage;
|
||||
data['ErrorType'] = this.errorType;
|
||||
data['FoodCategory'] = this.foodCategory;
|
||||
data['IOSLink'] = this.iOSLink;
|
||||
data['IsAuthenticated'] = this.isAuthenticated;
|
||||
data['MealOrderStatus'] = this.mealOrderStatus;
|
||||
data['MealType'] = this.mealType;
|
||||
data['MessageStatus'] = this.messageStatus;
|
||||
data['NumberOfResultRecords'] = this.numberOfResultRecords;
|
||||
data['PatientBlodType'] = this.patientBlodType;
|
||||
data['SuccessMsg'] = this.successMsg;
|
||||
data['SuccessMsgN'] = this.successMsgN;
|
||||
data['DoctorInformation_List'] = this.doctorInformationList;
|
||||
data['GetAllPendingRecordsList'] = this.getAllPendingRecordsList;
|
||||
if (this.getAllSharedRecordsByStatusList != null) {
|
||||
data['GetAllSharedRecordsByStatusList'] =
|
||||
this.getAllSharedRecordsByStatusList.map((v) => v.toJson()).toList();
|
||||
}
|
||||
data['GetResponseFileList'] = this.getResponseFileList;
|
||||
data['IsHMGPatient'] = this.isHMGPatient;
|
||||
data['IsLoginSuccessfully'] = this.isLoginSuccessfully;
|
||||
data['IsNeedUpdateIdintificationNo'] = this.isNeedUpdateIdintificationNo;
|
||||
data['KioskSendSMS'] = this.kioskSendSMS;
|
||||
data['List'] = this.list;
|
||||
data['List_AskHabibMobileLoginInfo'] = this.listAskHabibMobileLoginInfo;
|
||||
data['List_AskHabibPatientFile'] = this.listAskHabibPatientFile;
|
||||
data['List_MergeFiles'] = this.listMergeFiles;
|
||||
data['List_MobileLoginInfo'] = this.listMobileLoginInfo;
|
||||
data['List_PatientCount'] = this.listPatientCount;
|
||||
data['LogInTokenID'] = this.logInTokenID;
|
||||
data['MohemmPrivilege_List'] = this.mohemmPrivilegeList;
|
||||
data['PateintID'] = this.pateintID;
|
||||
data['PatientBloodType'] = this.patientBloodType;
|
||||
data['PatientER_DriverFile'] = this.patientERDriverFile;
|
||||
data['PatientER_DriverFileList'] = this.patientERDriverFileList;
|
||||
data['PatientHasFile'] = this.patientHasFile;
|
||||
data['PatientMergedIDs'] = this.patientMergedIDs;
|
||||
data['PatientOutSA'] = this.patientOutSA;
|
||||
data['PatientShareRequestID'] = this.patientShareRequestID;
|
||||
data['PatientType'] = this.patientType;
|
||||
data['ProjectIDOut'] = this.projectIDOut;
|
||||
data['ReturnMessage'] = this.returnMessage;
|
||||
data['SMSLoginRequired'] = this.sMSLoginRequired;
|
||||
data['ServicePrivilege_List'] = this.servicePrivilegeList;
|
||||
data['SharePatientName'] = this.sharePatientName;
|
||||
data['VerificationCode'] = this.verificationCode;
|
||||
data['email'] = this.email;
|
||||
data['errorList'] = this.errorList;
|
||||
data['hasFile'] = this.hasFile;
|
||||
data['isActiveCode'] = this.isActiveCode;
|
||||
data['isMerged'] = this.isMerged;
|
||||
data['isNeedUserAgreement'] = this.isNeedUserAgreement;
|
||||
data['isSMSSent'] = this.isSMSSent;
|
||||
data['memberList'] = this.memberList;
|
||||
data['message'] = this.message;
|
||||
data['statusCode'] = this.statusCode;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class GetAllSharedRecordsByStatusList {
|
||||
int iD;
|
||||
int patientID;
|
||||
int responseID;
|
||||
int regionID;
|
||||
int status;
|
||||
Null isActive;
|
||||
String editedOn;
|
||||
String createdOn;
|
||||
String emaiLAddress;
|
||||
String mobileNumber;
|
||||
String patientIdenficationNumber;
|
||||
String patientName;
|
||||
String statusDescription;
|
||||
|
||||
GetAllSharedRecordsByStatusList(
|
||||
{this.iD,
|
||||
this.patientID,
|
||||
this.responseID,
|
||||
this.regionID,
|
||||
this.status,
|
||||
this.isActive,
|
||||
this.editedOn,
|
||||
this.createdOn,
|
||||
this.emaiLAddress,
|
||||
this.mobileNumber,
|
||||
this.patientIdenficationNumber,
|
||||
this.patientName,
|
||||
this.statusDescription});
|
||||
|
||||
GetAllSharedRecordsByStatusList.fromJson(Map<String, dynamic> json) {
|
||||
iD = json['ID'];
|
||||
patientID = json['PatientID'];
|
||||
responseID = json['ResponseID'];
|
||||
regionID = json['RegionID'];
|
||||
status = json['Status'];
|
||||
isActive = json['IsActive'];
|
||||
editedOn = json['EditedOn'];
|
||||
createdOn = json['CreatedOn'];
|
||||
emaiLAddress = json['EmaiLAddress'];
|
||||
mobileNumber = json['MobileNumber'];
|
||||
patientIdenficationNumber = json['PatientIdenficationNumber'];
|
||||
patientName = json['PatientName'];
|
||||
statusDescription = json['StatusDescription'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['ID'] = this.iD;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['ResponseID'] = this.responseID;
|
||||
data['RegionID'] = this.regionID;
|
||||
data['Status'] = this.status;
|
||||
data['IsActive'] = this.isActive;
|
||||
data['EditedOn'] = this.editedOn;
|
||||
data['CreatedOn'] = this.createdOn;
|
||||
data['EmaiLAddress'] = this.emaiLAddress;
|
||||
data['MobileNumber'] = this.mobileNumber;
|
||||
data['PatientIdenficationNumber'] = this.patientIdenficationNumber;
|
||||
data['PatientName'] = this.patientName;
|
||||
data['StatusDescription'] = this.statusDescription;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
class GetAllSharedRecordsByStatusReq {
|
||||
double versionID;
|
||||
int channel;
|
||||
int languageID;
|
||||
String iPAdress;
|
||||
String generalid;
|
||||
int patientOutSA;
|
||||
String sessionID;
|
||||
bool isDentalAllowedBackend;
|
||||
int deviceTypeID;
|
||||
int patientID;
|
||||
String tokenID;
|
||||
int patientTypeID;
|
||||
int patientType;
|
||||
int status;
|
||||
|
||||
GetAllSharedRecordsByStatusReq(
|
||||
{this.versionID,
|
||||
this.channel,
|
||||
this.languageID,
|
||||
this.iPAdress,
|
||||
this.generalid,
|
||||
this.patientOutSA,
|
||||
this.sessionID,
|
||||
this.isDentalAllowedBackend,
|
||||
this.deviceTypeID,
|
||||
this.patientID,
|
||||
this.tokenID,
|
||||
this.patientTypeID,
|
||||
this.patientType,
|
||||
this.status});
|
||||
|
||||
GetAllSharedRecordsByStatusReq.fromJson(Map<String, dynamic> json) {
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
languageID = json['LanguageID'];
|
||||
iPAdress = json['IPAdress'];
|
||||
generalid = json['generalid'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
sessionID = json['SessionID'];
|
||||
isDentalAllowedBackend = json['isDentalAllowedBackend'];
|
||||
deviceTypeID = json['DeviceTypeID'];
|
||||
patientID = json['PatientID'];
|
||||
tokenID = json['TokenID'];
|
||||
patientTypeID = json['PatientTypeID'];
|
||||
patientType = json['PatientType'];
|
||||
status = json['Status'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['VersionID'] = this.versionID;
|
||||
data['Channel'] = this.channel;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['IPAdress'] = this.iPAdress;
|
||||
data['generalid'] = this.generalid;
|
||||
data['PatientOutSA'] = this.patientOutSA;
|
||||
data['SessionID'] = this.sessionID;
|
||||
data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
|
||||
data['DeviceTypeID'] = this.deviceTypeID;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['TokenID'] = this.tokenID;
|
||||
data['PatientTypeID'] = this.patientTypeID;
|
||||
data['PatientType'] = this.patientType;
|
||||
data['Status'] = this.status;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
import 'package:diplomaticquarterapp/config/config.dart';
|
||||
import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
|
||||
import 'package:diplomaticquarterapp/core/service/client/base_app_client.dart';
|
||||
import 'package:diplomaticquarterapp/models/FamilyFiles/GetAllSharedRecordByStatusResponse.dart';
|
||||
import 'package:diplomaticquarterapp/models/FamilyFiles/GetAllSharedRecordsByStatusReq.dart';
|
||||
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
// SharedPreferences sharedPref = new SharedPreferences();
|
||||
enum APP_STATUS { LOADING, UNAUTHENTICATED, AUTHENTICATED }
|
||||
AppSharedPreferences sharedPref = new AppSharedPreferences();
|
||||
|
||||
const String GET_SHARED_RECORD_BY_STATUS =
|
||||
'/Authentication.svc/REST/GetAllSharedRecordsByStatus';
|
||||
|
||||
class FamilyFilesProvider with ChangeNotifier {
|
||||
bool isLogin = false;
|
||||
bool isLoading = true;
|
||||
dynamic authenticatedUser;
|
||||
|
||||
Future<GetAllSharedRecordsByStatusResponse> getSharedRecordByStatus() async {
|
||||
try {
|
||||
dynamic localRes;
|
||||
var request = GetAllSharedRecordsByStatusReq();
|
||||
request.status = 0;
|
||||
await new BaseAppClient().post(GET_SHARED_RECORD_BY_STATUS,
|
||||
onSuccess: (dynamic response, int statusCode) {
|
||||
localRes = response;
|
||||
}, onFailure: (String error, int statusCode) {
|
||||
throw error;
|
||||
}, body: request.toJson());
|
||||
return Future.value(
|
||||
GetAllSharedRecordsByStatusResponse.fromJson(localRes));
|
||||
} catch (error) {
|
||||
print(error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue