|
@@ -5208,13 +5208,20 @@ class ThesaurusItemRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+enum GradingConfigTypeEnum {
|
|
|
+ Switch,
|
|
|
+ Text,
|
|
|
+}
|
|
|
+
|
|
|
class UpdateGradingProtectionConfigEnableRequest extends TokenRequest{
|
|
|
List<String >? codes;
|
|
|
- bool enable;
|
|
|
+ GradingConfigTypeEnum configType;
|
|
|
+ String? value;
|
|
|
|
|
|
UpdateGradingProtectionConfigEnableRequest({
|
|
|
this.codes,
|
|
|
- this.enable = false,
|
|
|
+ this.configType = GradingConfigTypeEnum.Switch,
|
|
|
+ this.value,
|
|
|
String? token,
|
|
|
}) : super(
|
|
|
token: token,
|
|
@@ -5223,7 +5230,8 @@ class UpdateGradingProtectionConfigEnableRequest extends TokenRequest{
|
|
|
factory UpdateGradingProtectionConfigEnableRequest.fromJson(Map<String, dynamic> map) {
|
|
|
return UpdateGradingProtectionConfigEnableRequest(
|
|
|
codes: map['Codes'] != null ? map['Codes'].cast<String>().toList() : null,
|
|
|
- enable: map['Enable'],
|
|
|
+ configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
|
|
|
+ value: map['Value'],
|
|
|
token: map['Token'],
|
|
|
);
|
|
|
}
|
|
@@ -5232,7 +5240,9 @@ class UpdateGradingProtectionConfigEnableRequest extends TokenRequest{
|
|
|
final map = super.toJson();
|
|
|
if(codes != null)
|
|
|
map['Codes'] = codes;
|
|
|
- map['Enable'] = enable;
|
|
|
+ map['ConfigType'] = configType.index;
|
|
|
+ if(value != null)
|
|
|
+ map['Value'] = value;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -5295,8 +5305,10 @@ class BaseLiveConsultationJson {
|
|
|
}
|
|
|
|
|
|
class InitiateLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
+ int integerRoomId;
|
|
|
|
|
|
InitiateLiveConsultationJson({
|
|
|
+ this.integerRoomId = 0,
|
|
|
String? roomCode,
|
|
|
String? consultationRecordCode,
|
|
|
String? operatorCode,
|
|
@@ -5310,6 +5322,7 @@ class InitiateLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
|
|
|
factory InitiateLiveConsultationJson.fromJson(Map<String, dynamic> map) {
|
|
|
return InitiateLiveConsultationJson(
|
|
|
+ integerRoomId: map['IntegerRoomId'],
|
|
|
roomCode: map['RoomCode'],
|
|
|
consultationRecordCode: map['ConsultationRecordCode'],
|
|
|
operatorCode: map['OperatorCode'],
|
|
@@ -5319,129 +5332,16 @@ class InitiateLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
+ map['IntegerRoomId'] = integerRoomId;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class AcceptLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
-
|
|
|
- AcceptLiveConsultationJson({
|
|
|
- String? roomCode,
|
|
|
- String? consultationRecordCode,
|
|
|
- String? operatorCode,
|
|
|
- String? initatorCode,
|
|
|
- }) : super(
|
|
|
- roomCode: roomCode,
|
|
|
- consultationRecordCode: consultationRecordCode,
|
|
|
- operatorCode: operatorCode,
|
|
|
- initatorCode: initatorCode,
|
|
|
- );
|
|
|
-
|
|
|
- factory AcceptLiveConsultationJson.fromJson(Map<String, dynamic> map) {
|
|
|
- return AcceptLiveConsultationJson(
|
|
|
- roomCode: map['RoomCode'],
|
|
|
- consultationRecordCode: map['ConsultationRecordCode'],
|
|
|
- operatorCode: map['OperatorCode'],
|
|
|
- initatorCode: map['InitatorCode'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = super.toJson();
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class RejectLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
-
|
|
|
- RejectLiveConsultationJson({
|
|
|
- String? roomCode,
|
|
|
- String? consultationRecordCode,
|
|
|
- String? operatorCode,
|
|
|
- String? initatorCode,
|
|
|
- }) : super(
|
|
|
- roomCode: roomCode,
|
|
|
- consultationRecordCode: consultationRecordCode,
|
|
|
- operatorCode: operatorCode,
|
|
|
- initatorCode: initatorCode,
|
|
|
- );
|
|
|
-
|
|
|
- factory RejectLiveConsultationJson.fromJson(Map<String, dynamic> map) {
|
|
|
- return RejectLiveConsultationJson(
|
|
|
- roomCode: map['RoomCode'],
|
|
|
- consultationRecordCode: map['ConsultationRecordCode'],
|
|
|
- operatorCode: map['OperatorCode'],
|
|
|
- initatorCode: map['InitatorCode'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = super.toJson();
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class CancelInitiatorLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
-
|
|
|
- CancelInitiatorLiveConsultationJson({
|
|
|
- String? roomCode,
|
|
|
- String? consultationRecordCode,
|
|
|
- String? operatorCode,
|
|
|
- String? initatorCode,
|
|
|
- }) : super(
|
|
|
- roomCode: roomCode,
|
|
|
- consultationRecordCode: consultationRecordCode,
|
|
|
- operatorCode: operatorCode,
|
|
|
- initatorCode: initatorCode,
|
|
|
- );
|
|
|
-
|
|
|
- factory CancelInitiatorLiveConsultationJson.fromJson(Map<String, dynamic> map) {
|
|
|
- return CancelInitiatorLiveConsultationJson(
|
|
|
- roomCode: map['RoomCode'],
|
|
|
- consultationRecordCode: map['ConsultationRecordCode'],
|
|
|
- operatorCode: map['OperatorCode'],
|
|
|
- initatorCode: map['InitatorCode'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = super.toJson();
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class CloseLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
-
|
|
|
- CloseLiveConsultationJson({
|
|
|
- String? roomCode,
|
|
|
- String? consultationRecordCode,
|
|
|
- String? operatorCode,
|
|
|
- String? initatorCode,
|
|
|
- }) : super(
|
|
|
- roomCode: roomCode,
|
|
|
- consultationRecordCode: consultationRecordCode,
|
|
|
- operatorCode: operatorCode,
|
|
|
- initatorCode: initatorCode,
|
|
|
- );
|
|
|
-
|
|
|
- factory CloseLiveConsultationJson.fromJson(Map<String, dynamic> map) {
|
|
|
- return CloseLiveConsultationJson(
|
|
|
- roomCode: map['RoomCode'],
|
|
|
- consultationRecordCode: map['ConsultationRecordCode'],
|
|
|
- operatorCode: map['OperatorCode'],
|
|
|
- initatorCode: map['InitatorCode'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = super.toJson();
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class JoinLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
+class MuteLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
+ bool mute;
|
|
|
|
|
|
- JoinLiveConsultationJson({
|
|
|
+ MuteLiveConsultationJson({
|
|
|
+ this.mute = false,
|
|
|
String? roomCode,
|
|
|
String? consultationRecordCode,
|
|
|
String? operatorCode,
|
|
@@ -5453,8 +5353,9 @@ class JoinLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
initatorCode: initatorCode,
|
|
|
);
|
|
|
|
|
|
- factory JoinLiveConsultationJson.fromJson(Map<String, dynamic> map) {
|
|
|
- return JoinLiveConsultationJson(
|
|
|
+ factory MuteLiveConsultationJson.fromJson(Map<String, dynamic> map) {
|
|
|
+ return MuteLiveConsultationJson(
|
|
|
+ mute: map['Mute'],
|
|
|
roomCode: map['RoomCode'],
|
|
|
consultationRecordCode: map['ConsultationRecordCode'],
|
|
|
operatorCode: map['OperatorCode'],
|
|
@@ -5464,13 +5365,16 @@ class JoinLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
+ map['Mute'] = mute;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class NetworkErrLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
+class SwitchLiveConsultationVideoJson extends BaseLiveConsultationJson{
|
|
|
+ bool videoOpend;
|
|
|
|
|
|
- NetworkErrLiveConsultationJson({
|
|
|
+ SwitchLiveConsultationVideoJson({
|
|
|
+ this.videoOpend = false,
|
|
|
String? roomCode,
|
|
|
String? consultationRecordCode,
|
|
|
String? operatorCode,
|
|
@@ -5482,8 +5386,9 @@ class NetworkErrLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
initatorCode: initatorCode,
|
|
|
);
|
|
|
|
|
|
- factory NetworkErrLiveConsultationJson.fromJson(Map<String, dynamic> map) {
|
|
|
- return NetworkErrLiveConsultationJson(
|
|
|
+ factory SwitchLiveConsultationVideoJson.fromJson(Map<String, dynamic> map) {
|
|
|
+ return SwitchLiveConsultationVideoJson(
|
|
|
+ videoOpend: map['VideoOpend'],
|
|
|
roomCode: map['RoomCode'],
|
|
|
consultationRecordCode: map['ConsultationRecordCode'],
|
|
|
operatorCode: map['OperatorCode'],
|
|
@@ -5493,13 +5398,16 @@ class NetworkErrLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
+ map['VideoOpend'] = videoOpend;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class LeaveLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
+class ChangeConsultationStatusJson extends BaseLiveConsultationJson{
|
|
|
+ TransactionStatusEnum status;
|
|
|
|
|
|
- LeaveLiveConsultationJson({
|
|
|
+ ChangeConsultationStatusJson({
|
|
|
+ this.status = TransactionStatusEnum.Applied,
|
|
|
String? roomCode,
|
|
|
String? consultationRecordCode,
|
|
|
String? operatorCode,
|
|
@@ -5511,8 +5419,9 @@ class LeaveLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
initatorCode: initatorCode,
|
|
|
);
|
|
|
|
|
|
- factory LeaveLiveConsultationJson.fromJson(Map<String, dynamic> map) {
|
|
|
- return LeaveLiveConsultationJson(
|
|
|
+ factory ChangeConsultationStatusJson.fromJson(Map<String, dynamic> map) {
|
|
|
+ return ChangeConsultationStatusJson(
|
|
|
+ status: TransactionStatusEnum.values.firstWhere((e) => e.index == map['Status']),
|
|
|
roomCode: map['RoomCode'],
|
|
|
consultationRecordCode: map['ConsultationRecordCode'],
|
|
|
operatorCode: map['OperatorCode'],
|
|
@@ -5522,15 +5431,16 @@ class LeaveLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
+ map['Status'] = status.index;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class MuteLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
- bool mute;
|
|
|
+class InviteInLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
+ List<String >? userCodes;
|
|
|
|
|
|
- MuteLiveConsultationJson({
|
|
|
- this.mute = false,
|
|
|
+ InviteInLiveConsultationJson({
|
|
|
+ this.userCodes,
|
|
|
String? roomCode,
|
|
|
String? consultationRecordCode,
|
|
|
String? operatorCode,
|
|
@@ -5542,9 +5452,9 @@ class MuteLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
initatorCode: initatorCode,
|
|
|
);
|
|
|
|
|
|
- factory MuteLiveConsultationJson.fromJson(Map<String, dynamic> map) {
|
|
|
- return MuteLiveConsultationJson(
|
|
|
- mute: map['Mute'],
|
|
|
+ factory InviteInLiveConsultationJson.fromJson(Map<String, dynamic> map) {
|
|
|
+ return InviteInLiveConsultationJson(
|
|
|
+ userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
|
|
|
roomCode: map['RoomCode'],
|
|
|
consultationRecordCode: map['ConsultationRecordCode'],
|
|
|
operatorCode: map['OperatorCode'],
|
|
@@ -5554,16 +5464,17 @@ class MuteLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- map['Mute'] = mute;
|
|
|
+ if(userCodes != null)
|
|
|
+ map['UserCodes'] = userCodes;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class SwitchLiveConsultationVideoJson extends BaseLiveConsultationJson{
|
|
|
- bool videoOpend;
|
|
|
+class CancelInviteInLiveConsultationJson extends BaseLiveConsultationJson{
|
|
|
+ List<String >? userCodes;
|
|
|
|
|
|
- SwitchLiveConsultationVideoJson({
|
|
|
- this.videoOpend = false,
|
|
|
+ CancelInviteInLiveConsultationJson({
|
|
|
+ this.userCodes,
|
|
|
String? roomCode,
|
|
|
String? consultationRecordCode,
|
|
|
String? operatorCode,
|
|
@@ -5575,9 +5486,9 @@ class SwitchLiveConsultationVideoJson extends BaseLiveConsultationJson{
|
|
|
initatorCode: initatorCode,
|
|
|
);
|
|
|
|
|
|
- factory SwitchLiveConsultationVideoJson.fromJson(Map<String, dynamic> map) {
|
|
|
- return SwitchLiveConsultationVideoJson(
|
|
|
- videoOpend: map['VideoOpend'],
|
|
|
+ factory CancelInviteInLiveConsultationJson.fromJson(Map<String, dynamic> map) {
|
|
|
+ return CancelInviteInLiveConsultationJson(
|
|
|
+ userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
|
|
|
roomCode: map['RoomCode'],
|
|
|
consultationRecordCode: map['ConsultationRecordCode'],
|
|
|
operatorCode: map['OperatorCode'],
|
|
@@ -5587,7 +5498,8 @@ class SwitchLiveConsultationVideoJson extends BaseLiveConsultationJson{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- map['VideoOpend'] = videoOpend;
|
|
|
+ if(userCodes != null)
|
|
|
+ map['UserCodes'] = userCodes;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -5612,58 +5524,6 @@ enum VideoProtocol {
|
|
|
Rtc,
|
|
|
}
|
|
|
|
|
|
-class LiveConsultationMuterInfo extends LiveConsultationMemberInfo{
|
|
|
-
|
|
|
- LiveConsultationMuterInfo({
|
|
|
- String? id,
|
|
|
- String? name,
|
|
|
- String? headImageUrl,
|
|
|
- }) : super(
|
|
|
- id: id,
|
|
|
- name: name,
|
|
|
- headImageUrl: headImageUrl,
|
|
|
- );
|
|
|
-
|
|
|
- factory LiveConsultationMuterInfo.fromJson(Map<String, dynamic> map) {
|
|
|
- return LiveConsultationMuterInfo(
|
|
|
- id: map['Id'],
|
|
|
- name: map['Name'],
|
|
|
- headImageUrl: map['HeadImageUrl'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = super.toJson();
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class LiveConsultationSwitcherInfo extends LiveConsultationMemberInfo{
|
|
|
-
|
|
|
- LiveConsultationSwitcherInfo({
|
|
|
- String? id,
|
|
|
- String? name,
|
|
|
- String? headImageUrl,
|
|
|
- }) : super(
|
|
|
- id: id,
|
|
|
- name: name,
|
|
|
- headImageUrl: headImageUrl,
|
|
|
- );
|
|
|
-
|
|
|
- factory LiveConsultationSwitcherInfo.fromJson(Map<String, dynamic> map) {
|
|
|
- return LiveConsultationSwitcherInfo(
|
|
|
- id: map['Id'],
|
|
|
- name: map['Name'],
|
|
|
- headImageUrl: map['HeadImageUrl'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = super.toJson();
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
class LiveConsultationRoomDTO {
|
|
|
String? consultationCode;
|
|
|
LiveConsultationMember? initiator;
|
|
@@ -5708,66 +5568,6 @@ class LiveConsultationRoomDTO {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class MuteLiveConsultationNotification {
|
|
|
- String? consultationCode;
|
|
|
- bool mute;
|
|
|
- LiveConsultationMuterInfo? muterInfo;
|
|
|
-
|
|
|
- MuteLiveConsultationNotification({
|
|
|
- this.consultationCode,
|
|
|
- this.mute = false,
|
|
|
- this.muterInfo,
|
|
|
- });
|
|
|
-
|
|
|
- factory MuteLiveConsultationNotification.fromJson(Map<String, dynamic> map) {
|
|
|
- return MuteLiveConsultationNotification(
|
|
|
- consultationCode: map['ConsultationCode'],
|
|
|
- mute: map['Mute'],
|
|
|
- muterInfo: map['MuterInfo'] != null ? LiveConsultationMuterInfo.fromJson(map['MuterInfo']) : null,
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = Map<String, dynamic>();
|
|
|
- if(consultationCode != null)
|
|
|
- map['ConsultationCode'] = consultationCode;
|
|
|
- map['Mute'] = mute;
|
|
|
- if(muterInfo != null)
|
|
|
- map['MuterInfo'] = muterInfo;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class SwitchLiveConsultationVideoNotification {
|
|
|
- String? consultationCode;
|
|
|
- bool opened;
|
|
|
- LiveConsultationSwitcherInfo? switcherInfo;
|
|
|
-
|
|
|
- SwitchLiveConsultationVideoNotification({
|
|
|
- this.consultationCode,
|
|
|
- this.opened = false,
|
|
|
- this.switcherInfo,
|
|
|
- });
|
|
|
-
|
|
|
- factory SwitchLiveConsultationVideoNotification.fromJson(Map<String, dynamic> map) {
|
|
|
- return SwitchLiveConsultationVideoNotification(
|
|
|
- consultationCode: map['ConsultationCode'],
|
|
|
- opened: map['Opened'],
|
|
|
- switcherInfo: map['SwitcherInfo'] != null ? LiveConsultationSwitcherInfo.fromJson(map['SwitcherInfo']) : null,
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = Map<String, dynamic>();
|
|
|
- if(consultationCode != null)
|
|
|
- map['ConsultationCode'] = consultationCode;
|
|
|
- map['Opened'] = opened;
|
|
|
- if(switcherInfo != null)
|
|
|
- map['SwitcherInfo'] = switcherInfo;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
class FindConsultationSettingRequest extends TokenRequest{
|
|
|
String? version;
|
|
|
|
|
@@ -8053,6 +7853,51 @@ class LoginSuccessResult extends BaseServerResult{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class ScheduleDTO extends ClientScheduleDTO{
|
|
|
+ List<String >? userCodes;
|
|
|
+ String? code;
|
|
|
+
|
|
|
+ ScheduleDTO({
|
|
|
+ this.userCodes,
|
|
|
+ this.code,
|
|
|
+ String? title,
|
|
|
+ TransactionStatusEnum status = TransactionStatusEnum.Applied,
|
|
|
+ ScheduleTypeEnum scheduleType = ScheduleTypeEnum.Consultation,
|
|
|
+ DateTime? startTime,
|
|
|
+ DateTime? endTime,
|
|
|
+ String? relevanceCode,
|
|
|
+ }) : super(
|
|
|
+ title: title,
|
|
|
+ status: status,
|
|
|
+ scheduleType: scheduleType,
|
|
|
+ startTime: startTime,
|
|
|
+ endTime: endTime,
|
|
|
+ relevanceCode: relevanceCode,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory ScheduleDTO.fromJson(Map<String, dynamic> map) {
|
|
|
+ return ScheduleDTO(
|
|
|
+ userCodes: map['UserCodes'] != null ? map['UserCodes'].cast<String>().toList() : null,
|
|
|
+ code: map['Code'],
|
|
|
+ title: map['Title'],
|
|
|
+ status: TransactionStatusEnum.values.firstWhere((e) => e.index == map['Status']),
|
|
|
+ scheduleType: ScheduleTypeEnum.values.firstWhere((e) => e.index == map['ScheduleType']),
|
|
|
+ startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
|
|
|
+ endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
|
|
|
+ relevanceCode: map['RelevanceCode'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(userCodes != null)
|
|
|
+ map['UserCodes'] = userCodes;
|
|
|
+ if(code != null)
|
|
|
+ map['Code'] = code;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
class ReportElementDTO {
|
|
|
String? key;
|
|
|
String? tagId;
|
|
@@ -11467,13 +11312,15 @@ class GradingProtectionConfigDTO extends BaseDTO{
|
|
|
String? moduleCode;
|
|
|
String? name;
|
|
|
String? description;
|
|
|
- bool enable;
|
|
|
+ GradingConfigTypeEnum configType;
|
|
|
+ String? value;
|
|
|
|
|
|
GradingProtectionConfigDTO({
|
|
|
this.moduleCode,
|
|
|
this.name,
|
|
|
this.description,
|
|
|
- this.enable = false,
|
|
|
+ this.configType = GradingConfigTypeEnum.Switch,
|
|
|
+ this.value,
|
|
|
DateTime? createTime,
|
|
|
DateTime? updateTime,
|
|
|
}) : super(
|
|
@@ -11486,7 +11333,8 @@ class GradingProtectionConfigDTO extends BaseDTO{
|
|
|
moduleCode: map['ModuleCode'],
|
|
|
name: map['Name'],
|
|
|
description: map['Description'],
|
|
|
- enable: map['Enable'],
|
|
|
+ configType: GradingConfigTypeEnum.values.firstWhere((e) => e.index == map['ConfigType']),
|
|
|
+ value: map['Value'],
|
|
|
createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
);
|
|
@@ -11500,7 +11348,9 @@ class GradingProtectionConfigDTO extends BaseDTO{
|
|
|
map['Name'] = name;
|
|
|
if(description != null)
|
|
|
map['Description'] = description;
|
|
|
- map['Enable'] = enable;
|
|
|
+ map['ConfigType'] = configType.index;
|
|
|
+ if(value != null)
|
|
|
+ map['Value'] = value;
|
|
|
return map;
|
|
|
}
|
|
|
}
|