|
@@ -751,11 +751,15 @@ class FindExaminationQuestionPagesRequest extends PageRequest{
|
|
|
String? searchKey;
|
|
|
List<String >? caseLabelCodes;
|
|
|
List<String >? courseLabelCodes;
|
|
|
+ List<String >? codes;
|
|
|
+ List<String >? notInCodes;
|
|
|
|
|
|
FindExaminationQuestionPagesRequest({
|
|
|
this.searchKey,
|
|
|
this.caseLabelCodes,
|
|
|
this.courseLabelCodes,
|
|
|
+ this.codes,
|
|
|
+ this.notInCodes,
|
|
|
int pageIndex = 0,
|
|
|
int pageSize = 0,
|
|
|
String? token,
|
|
@@ -770,6 +774,8 @@ class FindExaminationQuestionPagesRequest extends PageRequest{
|
|
|
searchKey: map['SearchKey'],
|
|
|
caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
|
|
|
courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
|
|
|
+ codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
|
|
|
+ notInCodes: map['NotInCodes'] != null ? map['NotInCodes'].cast<String>().toList() : null,
|
|
|
pageIndex: map['PageIndex'],
|
|
|
pageSize: map['PageSize'],
|
|
|
token: map['Token'],
|
|
@@ -784,6 +790,35 @@ class FindExaminationQuestionPagesRequest extends PageRequest{
|
|
|
map['CaseLabelCodes'] = caseLabelCodes;
|
|
|
if(courseLabelCodes != null)
|
|
|
map['CourseLabelCodes'] = courseLabelCodes;
|
|
|
+ if(codes != null)
|
|
|
+ map['Codes'] = codes;
|
|
|
+ if(notInCodes != null)
|
|
|
+ map['NotInCodes'] = notInCodes;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class FindExaminationQuestionsByCodesRequest extends TokenRequest{
|
|
|
+ List<String >? codes;
|
|
|
+
|
|
|
+ FindExaminationQuestionsByCodesRequest({
|
|
|
+ this.codes,
|
|
|
+ String? token,
|
|
|
+ }) : super(
|
|
|
+ token: token,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory FindExaminationQuestionsByCodesRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return FindExaminationQuestionsByCodesRequest(
|
|
|
+ codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
|
|
|
+ token: map['Token'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(codes != null)
|
|
|
+ map['Codes'] = codes;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -798,11 +833,11 @@ enum QuestionTypeEnum {
|
|
|
|
|
|
class QuestionOptionDTO {
|
|
|
String? content;
|
|
|
- String? trueOrFalse;
|
|
|
+ bool trueOrFalse;
|
|
|
|
|
|
QuestionOptionDTO({
|
|
|
this.content,
|
|
|
- this.trueOrFalse,
|
|
|
+ this.trueOrFalse = false,
|
|
|
});
|
|
|
|
|
|
factory QuestionOptionDTO.fromJson(Map<String, dynamic> map) {
|
|
@@ -816,8 +851,7 @@ class QuestionOptionDTO {
|
|
|
final map = Map<String, dynamic>();
|
|
|
if(content != null)
|
|
|
map['Content'] = content;
|
|
|
- if(trueOrFalse != null)
|
|
|
- map['TrueOrFalse'] = trueOrFalse;
|
|
|
+ map['TrueOrFalse'] = trueOrFalse;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -826,10 +860,11 @@ class CreateExaminationQuestionRequest extends TokenRequest{
|
|
|
String? stem;
|
|
|
QuestionTypeEnum questionType;
|
|
|
List<QuestionOptionDTO >? questionOptionList;
|
|
|
- String? pictureList;
|
|
|
- String? videoList;
|
|
|
+ List<String >? pictureList;
|
|
|
+ List<String >? videoList;
|
|
|
List<String >? caseLabelCodes;
|
|
|
List<String >? courseLabelCodes;
|
|
|
+ bool trueOrFalse;
|
|
|
|
|
|
CreateExaminationQuestionRequest({
|
|
|
this.stem,
|
|
@@ -839,6 +874,7 @@ class CreateExaminationQuestionRequest extends TokenRequest{
|
|
|
this.videoList,
|
|
|
this.caseLabelCodes,
|
|
|
this.courseLabelCodes,
|
|
|
+ this.trueOrFalse = false,
|
|
|
String? token,
|
|
|
}) : super(
|
|
|
token: token,
|
|
@@ -849,10 +885,11 @@ class CreateExaminationQuestionRequest extends TokenRequest{
|
|
|
stem: map['Stem'],
|
|
|
questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
|
|
|
questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
- pictureList: map['PictureList'],
|
|
|
- videoList: map['VideoList'],
|
|
|
+ pictureList: map['PictureList'] != null ? map['PictureList'].cast<String>().toList() : null,
|
|
|
+ videoList: map['VideoList'] != null ? map['VideoList'].cast<String>().toList() : null,
|
|
|
caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
|
|
|
courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
|
|
|
+ trueOrFalse: map['TrueOrFalse'],
|
|
|
token: map['Token'],
|
|
|
);
|
|
|
}
|
|
@@ -872,15 +909,16 @@ class CreateExaminationQuestionRequest extends TokenRequest{
|
|
|
map['CaseLabelCodes'] = caseLabelCodes;
|
|
|
if(courseLabelCodes != null)
|
|
|
map['CourseLabelCodes'] = courseLabelCodes;
|
|
|
+ map['TrueOrFalse'] = trueOrFalse;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
class GetExaminationQuestionRequest extends TokenRequest{
|
|
|
- String? examinationQuestionCode;
|
|
|
+ String? code;
|
|
|
|
|
|
GetExaminationQuestionRequest({
|
|
|
- this.examinationQuestionCode,
|
|
|
+ this.code,
|
|
|
String? token,
|
|
|
}) : super(
|
|
|
token: token,
|
|
@@ -888,29 +926,32 @@ class GetExaminationQuestionRequest extends TokenRequest{
|
|
|
|
|
|
factory GetExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
|
|
|
return GetExaminationQuestionRequest(
|
|
|
- examinationQuestionCode: map['ExaminationQuestionCode'],
|
|
|
+ code: map['Code'],
|
|
|
token: map['Token'],
|
|
|
);
|
|
|
}
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(examinationQuestionCode != null)
|
|
|
- map['ExaminationQuestionCode'] = examinationQuestionCode;
|
|
|
+ if(code != null)
|
|
|
+ map['Code'] = code;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
class UpdateExaminationQuestionRequest extends TokenRequest{
|
|
|
+ String? code;
|
|
|
String? stem;
|
|
|
QuestionTypeEnum questionType;
|
|
|
List<QuestionOptionDTO >? questionOptionList;
|
|
|
- String? pictureList;
|
|
|
- String? videoList;
|
|
|
+ List<String >? pictureList;
|
|
|
+ List<String >? videoList;
|
|
|
List<String >? caseLabelCodes;
|
|
|
List<String >? courseLabelCodes;
|
|
|
+ bool trueOrFalse;
|
|
|
|
|
|
UpdateExaminationQuestionRequest({
|
|
|
+ this.code,
|
|
|
this.stem,
|
|
|
this.questionType = QuestionTypeEnum.Judge,
|
|
|
this.questionOptionList,
|
|
@@ -918,6 +959,7 @@ class UpdateExaminationQuestionRequest extends TokenRequest{
|
|
|
this.videoList,
|
|
|
this.caseLabelCodes,
|
|
|
this.courseLabelCodes,
|
|
|
+ this.trueOrFalse = false,
|
|
|
String? token,
|
|
|
}) : super(
|
|
|
token: token,
|
|
@@ -925,19 +967,23 @@ class UpdateExaminationQuestionRequest extends TokenRequest{
|
|
|
|
|
|
factory UpdateExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
|
|
|
return UpdateExaminationQuestionRequest(
|
|
|
+ code: map['Code'],
|
|
|
stem: map['Stem'],
|
|
|
questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
|
|
|
questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
- pictureList: map['PictureList'],
|
|
|
- videoList: map['VideoList'],
|
|
|
+ pictureList: map['PictureList'] != null ? map['PictureList'].cast<String>().toList() : null,
|
|
|
+ videoList: map['VideoList'] != null ? map['VideoList'].cast<String>().toList() : null,
|
|
|
caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
|
|
|
courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
|
|
|
+ trueOrFalse: map['TrueOrFalse'],
|
|
|
token: map['Token'],
|
|
|
);
|
|
|
}
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
+ if(code != null)
|
|
|
+ map['Code'] = code;
|
|
|
if(stem != null)
|
|
|
map['Stem'] = stem;
|
|
|
map['QuestionType'] = questionType.index;
|
|
@@ -951,15 +997,16 @@ class UpdateExaminationQuestionRequest extends TokenRequest{
|
|
|
map['CaseLabelCodes'] = caseLabelCodes;
|
|
|
if(courseLabelCodes != null)
|
|
|
map['CourseLabelCodes'] = courseLabelCodes;
|
|
|
+ map['TrueOrFalse'] = trueOrFalse;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
class DeleteExaminationQuestionRequest extends TokenRequest{
|
|
|
- String? examinationQuestionCode;
|
|
|
+ String? code;
|
|
|
|
|
|
DeleteExaminationQuestionRequest({
|
|
|
- this.examinationQuestionCode,
|
|
|
+ this.code,
|
|
|
String? token,
|
|
|
}) : super(
|
|
|
token: token,
|
|
@@ -967,15 +1014,15 @@ class DeleteExaminationQuestionRequest extends TokenRequest{
|
|
|
|
|
|
factory DeleteExaminationQuestionRequest.fromJson(Map<String, dynamic> map) {
|
|
|
return DeleteExaminationQuestionRequest(
|
|
|
- examinationQuestionCode: map['ExaminationQuestionCode'],
|
|
|
+ code: map['Code'],
|
|
|
token: map['Token'],
|
|
|
);
|
|
|
}
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(examinationQuestionCode != null)
|
|
|
- map['ExaminationQuestionCode'] = examinationQuestionCode;
|
|
|
+ if(code != null)
|
|
|
+ map['Code'] = code;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -1683,6 +1730,7 @@ class AdminApplyCourseRequest extends TokenRequest{
|
|
|
List<String >? courseLabelCodes;
|
|
|
List<String >? userGroupCodes;
|
|
|
Decimal? price;
|
|
|
+ List<String >? courseVideoCodes;
|
|
|
|
|
|
AdminApplyCourseRequest({
|
|
|
this.name,
|
|
@@ -1700,6 +1748,7 @@ class AdminApplyCourseRequest extends TokenRequest{
|
|
|
this.courseLabelCodes,
|
|
|
this.userGroupCodes,
|
|
|
this.price,
|
|
|
+ this.courseVideoCodes,
|
|
|
String? token,
|
|
|
}) : super(
|
|
|
token: token,
|
|
@@ -1722,6 +1771,7 @@ class AdminApplyCourseRequest extends TokenRequest{
|
|
|
courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
|
|
|
userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
|
|
|
price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
+ courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
|
|
|
token: map['Token'],
|
|
|
);
|
|
|
}
|
|
@@ -1754,6 +1804,8 @@ class AdminApplyCourseRequest extends TokenRequest{
|
|
|
map['UserGroupCodes'] = userGroupCodes;
|
|
|
if(price != null)
|
|
|
map['Price'] = price;
|
|
|
+ if(courseVideoCodes != null)
|
|
|
+ map['CourseVideoCodes'] = courseVideoCodes;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -1815,10 +1867,12 @@ class AdminDeleteCourseByCodeRequest extends TokenRequest{
|
|
|
class AdminFindCoursePagesRequest extends PageRequest{
|
|
|
String? keyword;
|
|
|
CourseStatusEnum status;
|
|
|
+ String? languageCode;
|
|
|
|
|
|
AdminFindCoursePagesRequest({
|
|
|
this.keyword,
|
|
|
this.status = CourseStatusEnum.Unknown,
|
|
|
+ this.languageCode,
|
|
|
int pageIndex = 0,
|
|
|
int pageSize = 0,
|
|
|
String? token,
|
|
@@ -1832,6 +1886,7 @@ class AdminFindCoursePagesRequest extends PageRequest{
|
|
|
return AdminFindCoursePagesRequest(
|
|
|
keyword: map['Keyword'],
|
|
|
status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
|
|
|
+ languageCode: map['LanguageCode'],
|
|
|
pageIndex: map['PageIndex'],
|
|
|
pageSize: map['PageSize'],
|
|
|
token: map['Token'],
|
|
@@ -1843,6 +1898,8 @@ class AdminFindCoursePagesRequest extends PageRequest{
|
|
|
if(keyword != null)
|
|
|
map['Keyword'] = keyword;
|
|
|
map['Status'] = status.index;
|
|
|
+ if(languageCode != null)
|
|
|
+ map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -1864,6 +1921,7 @@ class AdminUpdateCourseRequest extends TokenRequest{
|
|
|
List<String >? courseLabelCodes;
|
|
|
List<String >? userGroupCodes;
|
|
|
Decimal? price;
|
|
|
+ List<String >? courseVideoCodes;
|
|
|
|
|
|
AdminUpdateCourseRequest({
|
|
|
this.code,
|
|
@@ -1882,6 +1940,7 @@ class AdminUpdateCourseRequest extends TokenRequest{
|
|
|
this.courseLabelCodes,
|
|
|
this.userGroupCodes,
|
|
|
this.price,
|
|
|
+ this.courseVideoCodes,
|
|
|
String? token,
|
|
|
}) : super(
|
|
|
token: token,
|
|
@@ -1905,6 +1964,7 @@ class AdminUpdateCourseRequest extends TokenRequest{
|
|
|
courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
|
|
|
userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
|
|
|
price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
+ courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
|
|
|
token: map['Token'],
|
|
|
);
|
|
|
}
|
|
@@ -1939,6 +1999,8 @@ class AdminUpdateCourseRequest extends TokenRequest{
|
|
|
map['UserGroupCodes'] = userGroupCodes;
|
|
|
if(price != null)
|
|
|
map['Price'] = price;
|
|
|
+ if(courseVideoCodes != null)
|
|
|
+ map['CourseVideoCodes'] = courseVideoCodes;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -4729,8 +4791,6 @@ class ModifyOrganizationRequest extends OrganizationDTO{
|
|
|
double referralLimitHours = 0,
|
|
|
List<String >? referralOrganizationCodes,
|
|
|
List<ReferralOrganizationDTO >? referralOrganizations,
|
|
|
- String? emergencyOrganizationCode,
|
|
|
- String? emergencyDoctorCode,
|
|
|
String? organizationCode,
|
|
|
String? organizationName,
|
|
|
DateTime? createTime,
|
|
@@ -4762,8 +4822,6 @@ class ModifyOrganizationRequest extends OrganizationDTO{
|
|
|
referralLimitHours: referralLimitHours,
|
|
|
referralOrganizationCodes: referralOrganizationCodes,
|
|
|
referralOrganizations: referralOrganizations,
|
|
|
- emergencyOrganizationCode: emergencyOrganizationCode,
|
|
|
- emergencyDoctorCode: emergencyDoctorCode,
|
|
|
organizationCode: organizationCode,
|
|
|
organizationName: organizationName,
|
|
|
createTime: createTime,
|
|
@@ -4799,8 +4857,6 @@ class ModifyOrganizationRequest extends OrganizationDTO{
|
|
|
referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
|
|
|
referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
|
|
|
referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
- emergencyOrganizationCode: map['EmergencyOrganizationCode'],
|
|
|
- emergencyDoctorCode: map['EmergencyDoctorCode'],
|
|
|
organizationCode: map['OrganizationCode'],
|
|
|
organizationName: map['OrganizationName'],
|
|
|
createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
@@ -6334,6 +6390,36 @@ class UpdateGradingProtectionConfigEnableRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class FindVideosByCourseCodeRequest extends TokenRequest{
|
|
|
+ String? code;
|
|
|
+ String? courseCode;
|
|
|
+
|
|
|
+ FindVideosByCourseCodeRequest({
|
|
|
+ this.code,
|
|
|
+ this.courseCode,
|
|
|
+ String? token,
|
|
|
+ }) : super(
|
|
|
+ token: token,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory FindVideosByCourseCodeRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return FindVideosByCourseCodeRequest(
|
|
|
+ code: map['Code'],
|
|
|
+ courseCode: map['CourseCode'],
|
|
|
+ token: map['Token'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(code != null)
|
|
|
+ map['Code'] = code;
|
|
|
+ if(courseCode != null)
|
|
|
+ map['CourseCode'] = courseCode;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
class GetOpLogsByCodesFormMasterRequest {
|
|
|
List<String >? codes;
|
|
|
|
|
@@ -6683,6 +6769,31 @@ class FindOrganizationBindExpertsRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class GetEmergencyOrderRequest extends TokenRequest{
|
|
|
+ String? emergencySerialNumber;
|
|
|
+
|
|
|
+ GetEmergencyOrderRequest({
|
|
|
+ this.emergencySerialNumber,
|
|
|
+ String? token,
|
|
|
+ }) : super(
|
|
|
+ token: token,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory GetEmergencyOrderRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return GetEmergencyOrderRequest(
|
|
|
+ emergencySerialNumber: map['EmergencySerialNumber'],
|
|
|
+ token: map['Token'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(emergencySerialNumber != null)
|
|
|
+ map['EmergencySerialNumber'] = emergencySerialNumber;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
enum AgeUnitsEnum {
|
|
|
Year,
|
|
|
YearAndMonth,
|
|
@@ -7888,6 +7999,8 @@ enum SyncTypeEnum {
|
|
|
ChangeConsultationStatus,
|
|
|
Agree,
|
|
|
Notification,
|
|
|
+ EmergencyAccept,
|
|
|
+ ChangeControllingParameter,
|
|
|
}
|
|
|
|
|
|
enum SyncServiceEnum {
|
|
@@ -7903,6 +8016,7 @@ enum TransactionTypeEnum {
|
|
|
Announcement,
|
|
|
Session,
|
|
|
RemoteDia,
|
|
|
+ ControlParameter,
|
|
|
}
|
|
|
|
|
|
enum ASETypeEnum {
|
|
@@ -9159,6 +9273,71 @@ class ReportPushRecordDTO extends BaseDTO{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class ProbeSettingInfoDTO {
|
|
|
+ String? name;
|
|
|
+ List<ApplicationSettingInfoDTO >? applications;
|
|
|
+
|
|
|
+ ProbeSettingInfoDTO({
|
|
|
+ this.name,
|
|
|
+ this.applications,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory ProbeSettingInfoDTO.fromJson(Map<String, dynamic> map) {
|
|
|
+ return ProbeSettingInfoDTO(
|
|
|
+ name: map['Name'],
|
|
|
+ applications: map['Applications'] != null ? (map['Applications'] as List).map((e)=>ApplicationSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(name != null)
|
|
|
+ map['Name'] = name;
|
|
|
+ if(applications != null)
|
|
|
+ map['Applications'] = applications;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class ProbeApplicationSettingInfoDTO {
|
|
|
+ List<ProbeSettingInfoDTO >? probes;
|
|
|
+ String? activeProbe;
|
|
|
+ String? activeApplication;
|
|
|
+ int maxNumberForApplication;
|
|
|
+ int maxNumberForApplicationOfUserDefine;
|
|
|
+
|
|
|
+ ProbeApplicationSettingInfoDTO({
|
|
|
+ this.probes,
|
|
|
+ this.activeProbe,
|
|
|
+ this.activeApplication,
|
|
|
+ this.maxNumberForApplication = 0,
|
|
|
+ this.maxNumberForApplicationOfUserDefine = 0,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory ProbeApplicationSettingInfoDTO.fromJson(Map<String, dynamic> map) {
|
|
|
+ return ProbeApplicationSettingInfoDTO(
|
|
|
+ probes: map['Probes'] != null ? (map['Probes'] as List).map((e)=>ProbeSettingInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ activeProbe: map['ActiveProbe'],
|
|
|
+ activeApplication: map['ActiveApplication'],
|
|
|
+ maxNumberForApplication: map['MaxNumberForApplication'],
|
|
|
+ maxNumberForApplicationOfUserDefine: map['MaxNumberForApplicationOfUserDefine'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(probes != null)
|
|
|
+ map['Probes'] = probes;
|
|
|
+ if(activeProbe != null)
|
|
|
+ map['ActiveProbe'] = activeProbe;
|
|
|
+ if(activeApplication != null)
|
|
|
+ map['ActiveApplication'] = activeApplication;
|
|
|
+ map['MaxNumberForApplication'] = maxNumberForApplication;
|
|
|
+ map['MaxNumberForApplicationOfUserDefine'] = maxNumberForApplicationOfUserDefine;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
class RegionItemDTO {
|
|
|
String? c;
|
|
|
String? g;
|
|
@@ -11963,8 +12142,6 @@ class ManageOrganizationDTO extends OrganizationDTO{
|
|
|
double referralLimitHours = 0,
|
|
|
List<String >? referralOrganizationCodes,
|
|
|
List<ReferralOrganizationDTO >? referralOrganizations,
|
|
|
- String? emergencyOrganizationCode,
|
|
|
- String? emergencyDoctorCode,
|
|
|
String? organizationCode,
|
|
|
String? organizationName,
|
|
|
DateTime? createTime,
|
|
@@ -11996,8 +12173,6 @@ class ManageOrganizationDTO extends OrganizationDTO{
|
|
|
referralLimitHours: referralLimitHours,
|
|
|
referralOrganizationCodes: referralOrganizationCodes,
|
|
|
referralOrganizations: referralOrganizations,
|
|
|
- emergencyOrganizationCode: emergencyOrganizationCode,
|
|
|
- emergencyDoctorCode: emergencyDoctorCode,
|
|
|
organizationCode: organizationCode,
|
|
|
organizationName: organizationName,
|
|
|
createTime: createTime,
|
|
@@ -12040,8 +12215,6 @@ class ManageOrganizationDTO extends OrganizationDTO{
|
|
|
referralLimitHours: double.parse(map['ReferralLimitHours'].toString()),
|
|
|
referralOrganizationCodes: map['ReferralOrganizationCodes'] != null ? map['ReferralOrganizationCodes'].cast<String>().toList() : null,
|
|
|
referralOrganizations: map['ReferralOrganizations'] != null ? (map['ReferralOrganizations'] as List).map((e)=>ReferralOrganizationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
- emergencyOrganizationCode: map['EmergencyOrganizationCode'],
|
|
|
- emergencyDoctorCode: map['EmergencyDoctorCode'],
|
|
|
organizationCode: map['OrganizationCode'],
|
|
|
organizationName: map['OrganizationName'],
|
|
|
createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
@@ -12401,6 +12574,7 @@ class LiveMemberDTO {
|
|
|
bool videoOpened;
|
|
|
String? loginServerHost;
|
|
|
LiveDataDTO? liveData;
|
|
|
+ bool isControllingParameter;
|
|
|
|
|
|
LiveMemberDTO({
|
|
|
this.code,
|
|
@@ -12412,6 +12586,7 @@ class LiveMemberDTO {
|
|
|
this.videoOpened = false,
|
|
|
this.loginServerHost,
|
|
|
this.liveData,
|
|
|
+ this.isControllingParameter = false,
|
|
|
});
|
|
|
|
|
|
factory LiveMemberDTO.fromJson(Map<String, dynamic> map) {
|
|
@@ -12425,6 +12600,7 @@ class LiveMemberDTO {
|
|
|
videoOpened: map['VideoOpened'],
|
|
|
loginServerHost: map['LoginServerHost'],
|
|
|
liveData: map['LiveData'] != null ? LiveDataDTO.fromJson(map['LiveData']) : null,
|
|
|
+ isControllingParameter: map['IsControllingParameter'],
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -12444,6 +12620,7 @@ class LiveMemberDTO {
|
|
|
map['LoginServerHost'] = loginServerHost;
|
|
|
if(liveData != null)
|
|
|
map['LiveData'] = liveData;
|
|
|
+ map['IsControllingParameter'] = isControllingParameter;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -12605,15 +12782,18 @@ class ExaminationPaperDTO {
|
|
|
}
|
|
|
|
|
|
class ExaminationQuestionDTO extends BaseDTO{
|
|
|
+ String? code;
|
|
|
String? stem;
|
|
|
QuestionTypeEnum questionType;
|
|
|
List<QuestionOptionDTO >? questionOptionList;
|
|
|
- String? pictureList;
|
|
|
- String? videoList;
|
|
|
+ List<String >? pictureList;
|
|
|
+ List<String >? videoList;
|
|
|
List<String >? caseLabelCodes;
|
|
|
List<String >? courseLabelCodes;
|
|
|
+ bool trueOrFalse;
|
|
|
|
|
|
ExaminationQuestionDTO({
|
|
|
+ this.code,
|
|
|
this.stem,
|
|
|
this.questionType = QuestionTypeEnum.Judge,
|
|
|
this.questionOptionList,
|
|
@@ -12621,6 +12801,7 @@ class ExaminationQuestionDTO extends BaseDTO{
|
|
|
this.videoList,
|
|
|
this.caseLabelCodes,
|
|
|
this.courseLabelCodes,
|
|
|
+ this.trueOrFalse = false,
|
|
|
DateTime? createTime,
|
|
|
DateTime? updateTime,
|
|
|
}) : super(
|
|
@@ -12630,13 +12811,15 @@ class ExaminationQuestionDTO extends BaseDTO{
|
|
|
|
|
|
factory ExaminationQuestionDTO.fromJson(Map<String, dynamic> map) {
|
|
|
return ExaminationQuestionDTO(
|
|
|
+ code: map['Code'],
|
|
|
stem: map['Stem'],
|
|
|
questionType: QuestionTypeEnum.values.firstWhere((e) => e.index == map['QuestionType']),
|
|
|
questionOptionList: map['QuestionOptionList'] != null ? (map['QuestionOptionList'] as List).map((e)=>QuestionOptionDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
- pictureList: map['PictureList'],
|
|
|
- videoList: map['VideoList'],
|
|
|
+ pictureList: map['PictureList'] != null ? map['PictureList'].cast<String>().toList() : null,
|
|
|
+ videoList: map['VideoList'] != null ? map['VideoList'].cast<String>().toList() : null,
|
|
|
caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
|
|
|
courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
|
|
|
+ trueOrFalse: map['TrueOrFalse'],
|
|
|
createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
);
|
|
@@ -12644,6 +12827,8 @@ class ExaminationQuestionDTO extends BaseDTO{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
+ if(code != null)
|
|
|
+ map['Code'] = code;
|
|
|
if(stem != null)
|
|
|
map['Stem'] = stem;
|
|
|
map['QuestionType'] = questionType.index;
|
|
@@ -12657,6 +12842,7 @@ class ExaminationQuestionDTO extends BaseDTO{
|
|
|
map['CaseLabelCodes'] = caseLabelCodes;
|
|
|
if(courseLabelCodes != null)
|
|
|
map['CourseLabelCodes'] = courseLabelCodes;
|
|
|
+ map['TrueOrFalse'] = trueOrFalse;
|
|
|
return map;
|
|
|
}
|
|
|
}
|