|
@@ -101,6 +101,7 @@ enum NotificationTypeEnum {
|
|
|
ChangeShareInLiveCourseNotification,
|
|
|
CourseEntryNotification,
|
|
|
MeetingPendingMemberTimeoutNotification,
|
|
|
+ ConsultationAnswerTimeout,
|
|
|
}
|
|
|
|
|
|
class NotificationDTO {
|
|
@@ -2496,6 +2497,47 @@ class CloseConsolutionHeartRateToDeviceNotification extends NotificationDTO{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class ConsultationAnswerTimeoutNotification extends NotificationDTO{
|
|
|
+ String? consultationCode;
|
|
|
+ String? userCode;
|
|
|
+ String? userName;
|
|
|
+
|
|
|
+ ConsultationAnswerTimeoutNotification({
|
|
|
+ NotificationTypeEnum notificationType = NotificationTypeEnum.Unknown,
|
|
|
+ this.consultationCode,
|
|
|
+ this.userCode,
|
|
|
+ this.userName,
|
|
|
+ String? code,
|
|
|
+ bool isResponse = false,
|
|
|
+ }) : super(
|
|
|
+ notificationType: notificationType,
|
|
|
+ code: code,
|
|
|
+ isResponse: isResponse,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory ConsultationAnswerTimeoutNotification.fromJson(Map<String, dynamic> map) {
|
|
|
+ return ConsultationAnswerTimeoutNotification(
|
|
|
+ notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
|
|
|
+ consultationCode: map['ConsultationCode'],
|
|
|
+ userCode: map['UserCode'],
|
|
|
+ userName: map['UserName'],
|
|
|
+ code: map['Code'],
|
|
|
+ isResponse: map['IsResponse'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(consultationCode != null)
|
|
|
+ map['ConsultationCode'] = consultationCode;
|
|
|
+ if(userCode != null)
|
|
|
+ map['UserCode'] = userCode;
|
|
|
+ if(userName != null)
|
|
|
+ map['UserName'] = userName;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
class ConsultationRemindNotification extends NotificationDTO{
|
|
|
String? consultationCode;
|
|
|
int countdownTime;
|