|
@@ -136,14 +136,24 @@ enum ControlDeviceParameterEnum {
|
|
|
GetProbeApplication,
|
|
|
}
|
|
|
|
|
|
+enum LoginSource {
|
|
|
+ PC,
|
|
|
+ Mobile,
|
|
|
+ Pad,
|
|
|
+ Web,
|
|
|
+ US,
|
|
|
+}
|
|
|
+
|
|
|
class ApplyProbeApplicationSettingNotification extends NotificationDTO{
|
|
|
String? userCode;
|
|
|
ControlDeviceParameterEnum controlType;
|
|
|
+ LoginSource loginSource;
|
|
|
|
|
|
ApplyProbeApplicationSettingNotification({
|
|
|
NotificationTypeEnum notificationType = NotificationTypeEnum.Unknown,
|
|
|
this.userCode,
|
|
|
this.controlType = ControlDeviceParameterEnum.Start,
|
|
|
+ this.loginSource = LoginSource.PC,
|
|
|
String? code,
|
|
|
bool isResponse = false,
|
|
|
}) : super(
|
|
@@ -157,6 +167,7 @@ class ApplyProbeApplicationSettingNotification extends NotificationDTO{
|
|
|
notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
|
|
|
userCode: map['UserCode'],
|
|
|
controlType: ControlDeviceParameterEnum.values.firstWhere((e) => e.index == map['ControlType']),
|
|
|
+ loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
|
|
|
code: map['Code'],
|
|
|
isResponse: map['IsResponse'],
|
|
|
);
|
|
@@ -167,6 +178,7 @@ class ApplyProbeApplicationSettingNotification extends NotificationDTO{
|
|
|
if(userCode != null)
|
|
|
map['UserCode'] = userCode;
|
|
|
map['ControlType'] = controlType.index;
|
|
|
+ map['LoginSource'] = loginSource.index;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -438,6 +450,7 @@ class DeviceControlledParametersNotification extends NotificationDTO{
|
|
|
String? controlUserName;
|
|
|
ControlDeviceParameterEnum controlType;
|
|
|
List<AdditionParameterDTO >? parameters;
|
|
|
+ LoginSource loginSource;
|
|
|
|
|
|
DeviceControlledParametersNotification({
|
|
|
NotificationTypeEnum notificationType = NotificationTypeEnum.Unknown,
|
|
@@ -445,6 +458,7 @@ class DeviceControlledParametersNotification extends NotificationDTO{
|
|
|
this.controlUserName,
|
|
|
this.controlType = ControlDeviceParameterEnum.Start,
|
|
|
this.parameters,
|
|
|
+ this.loginSource = LoginSource.PC,
|
|
|
String? code,
|
|
|
bool isResponse = false,
|
|
|
}) : super(
|
|
@@ -460,6 +474,7 @@ class DeviceControlledParametersNotification extends NotificationDTO{
|
|
|
controlUserName: map['ControlUserName'],
|
|
|
controlType: ControlDeviceParameterEnum.values.firstWhere((e) => e.index == map['ControlType']),
|
|
|
parameters: map['Parameters'] != null ? (map['Parameters'] as List).map((e)=>AdditionParameterDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
|
|
|
code: map['Code'],
|
|
|
isResponse: map['IsResponse'],
|
|
|
);
|
|
@@ -474,6 +489,7 @@ class DeviceControlledParametersNotification extends NotificationDTO{
|
|
|
map['ControlType'] = controlType.index;
|
|
|
if(parameters != null)
|
|
|
map['Parameters'] = parameters;
|
|
|
+ map['LoginSource'] = loginSource.index;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -1075,6 +1091,7 @@ class ConnectStatusToDeviceNotification extends NotificationDTO{
|
|
|
String? controlUserName;
|
|
|
ControlDeviceParameterEnum controlType;
|
|
|
TransactionTypeEnum transactionType;
|
|
|
+ LoginSource loginSource;
|
|
|
|
|
|
ConnectStatusToDeviceNotification({
|
|
|
NotificationTypeEnum notificationType = NotificationTypeEnum.Unknown,
|
|
@@ -1082,6 +1099,7 @@ class ConnectStatusToDeviceNotification extends NotificationDTO{
|
|
|
this.controlUserName,
|
|
|
this.controlType = ControlDeviceParameterEnum.Start,
|
|
|
this.transactionType = TransactionTypeEnum.Consultion,
|
|
|
+ this.loginSource = LoginSource.PC,
|
|
|
String? code,
|
|
|
bool isResponse = false,
|
|
|
}) : super(
|
|
@@ -1097,6 +1115,7 @@ class ConnectStatusToDeviceNotification extends NotificationDTO{
|
|
|
controlUserName: map['ControlUserName'],
|
|
|
controlType: ControlDeviceParameterEnum.values.firstWhere((e) => e.index == map['ControlType']),
|
|
|
transactionType: TransactionTypeEnum.values.firstWhere((e) => e.index == map['TransactionType']),
|
|
|
+ loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
|
|
|
code: map['Code'],
|
|
|
isResponse: map['IsResponse'],
|
|
|
);
|
|
@@ -1110,6 +1129,7 @@ class ConnectStatusToDeviceNotification extends NotificationDTO{
|
|
|
map['ControlUserName'] = controlUserName;
|
|
|
map['ControlType'] = controlType.index;
|
|
|
map['TransactionType'] = transactionType.index;
|
|
|
+ map['LoginSource'] = loginSource.index;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -1198,6 +1218,7 @@ class VideoDeviceOutputInfo {
|
|
|
class StartLiveToDeviceNotification extends NotificationDTO{
|
|
|
String? liveRoomCode;
|
|
|
int roomNo;
|
|
|
+ String? liveProtocol;
|
|
|
int appId;
|
|
|
bool mergedChannel;
|
|
|
int mergedVideoOutputWidth;
|
|
@@ -1208,6 +1229,7 @@ class StartLiveToDeviceNotification extends NotificationDTO{
|
|
|
NotificationTypeEnum notificationType = NotificationTypeEnum.Unknown,
|
|
|
this.liveRoomCode,
|
|
|
this.roomNo = 0,
|
|
|
+ this.liveProtocol,
|
|
|
this.appId = 0,
|
|
|
this.mergedChannel = false,
|
|
|
this.mergedVideoOutputWidth = 0,
|
|
@@ -1226,6 +1248,7 @@ class StartLiveToDeviceNotification extends NotificationDTO{
|
|
|
notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
|
|
|
liveRoomCode: map['LiveRoomCode'],
|
|
|
roomNo: map['RoomNo'],
|
|
|
+ liveProtocol: map['LiveProtocol'],
|
|
|
appId: map['AppId'],
|
|
|
mergedChannel: map['MergedChannel'],
|
|
|
mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
|
|
@@ -1241,6 +1264,8 @@ class StartLiveToDeviceNotification extends NotificationDTO{
|
|
|
if(liveRoomCode != null)
|
|
|
map['LiveRoomCode'] = liveRoomCode;
|
|
|
map['RoomNo'] = roomNo;
|
|
|
+ if(liveProtocol != null)
|
|
|
+ map['LiveProtocol'] = liveProtocol;
|
|
|
map['AppId'] = appId;
|
|
|
map['MergedChannel'] = mergedChannel;
|
|
|
map['MergedVideoOutputWidth'] = mergedVideoOutputWidth;
|
|
@@ -1465,14 +1490,6 @@ enum LiveConsultationMemberStatus {
|
|
|
Left,
|
|
|
}
|
|
|
|
|
|
-enum LoginSource {
|
|
|
- PC,
|
|
|
- Mobile,
|
|
|
- Pad,
|
|
|
- Web,
|
|
|
- US,
|
|
|
-}
|
|
|
-
|
|
|
class LiveData {
|
|
|
int height;
|
|
|
int width;
|
|
@@ -1694,12 +1711,14 @@ class HeartRateLeaveCourseNotification extends NotificationDTO{
|
|
|
class InviteLiveCourseNotification extends NotificationDTO{
|
|
|
String? courseCode;
|
|
|
int roomNo;
|
|
|
+ String? liveProtocol;
|
|
|
LiveConsultationMember? initiator;
|
|
|
|
|
|
InviteLiveCourseNotification({
|
|
|
NotificationTypeEnum notificationType = NotificationTypeEnum.Unknown,
|
|
|
this.courseCode,
|
|
|
this.roomNo = 0,
|
|
|
+ this.liveProtocol,
|
|
|
this.initiator,
|
|
|
String? code,
|
|
|
bool isResponse = false,
|
|
@@ -1714,6 +1733,7 @@ class InviteLiveCourseNotification extends NotificationDTO{
|
|
|
notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
|
|
|
courseCode: map['CourseCode'],
|
|
|
roomNo: map['RoomNo'],
|
|
|
+ liveProtocol: map['LiveProtocol'],
|
|
|
initiator: map['Initiator'] != null ? LiveConsultationMember.fromJson(map['Initiator']) : null,
|
|
|
code: map['Code'],
|
|
|
isResponse: map['IsResponse'],
|
|
@@ -1725,6 +1745,8 @@ class InviteLiveCourseNotification extends NotificationDTO{
|
|
|
if(courseCode != null)
|
|
|
map['CourseCode'] = courseCode;
|
|
|
map['RoomNo'] = roomNo;
|
|
|
+ if(liveProtocol != null)
|
|
|
+ map['LiveProtocol'] = liveProtocol;
|
|
|
if(initiator != null)
|
|
|
map['Initiator'] = initiator;
|
|
|
return map;
|
|
@@ -2377,11 +2399,13 @@ class RejectApplyConsultationNotification extends NotificationDTO{
|
|
|
|
|
|
class StartConsolutionHeartRateToDeviceNotification extends NotificationDTO{
|
|
|
String? liveRoomCode;
|
|
|
+ String? liveProtocol;
|
|
|
int intervalSeconds;
|
|
|
|
|
|
StartConsolutionHeartRateToDeviceNotification({
|
|
|
NotificationTypeEnum notificationType = NotificationTypeEnum.Unknown,
|
|
|
this.liveRoomCode,
|
|
|
+ this.liveProtocol,
|
|
|
this.intervalSeconds = 0,
|
|
|
String? code,
|
|
|
bool isResponse = false,
|
|
@@ -2395,6 +2419,7 @@ class StartConsolutionHeartRateToDeviceNotification extends NotificationDTO{
|
|
|
return StartConsolutionHeartRateToDeviceNotification(
|
|
|
notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
|
|
|
liveRoomCode: map['LiveRoomCode'],
|
|
|
+ liveProtocol: map['LiveProtocol'],
|
|
|
intervalSeconds: map['IntervalSeconds'],
|
|
|
code: map['Code'],
|
|
|
isResponse: map['IsResponse'],
|
|
@@ -2405,6 +2430,8 @@ class StartConsolutionHeartRateToDeviceNotification extends NotificationDTO{
|
|
|
final map = super.toJson();
|
|
|
if(liveRoomCode != null)
|
|
|
map['LiveRoomCode'] = liveRoomCode;
|
|
|
+ if(liveProtocol != null)
|
|
|
+ map['LiveProtocol'] = liveProtocol;
|
|
|
map['IntervalSeconds'] = intervalSeconds;
|
|
|
return map;
|
|
|
}
|
|
@@ -2486,10 +2513,12 @@ class ProbeApplicationSettingResponseNotification extends NotificationDTO{
|
|
|
|
|
|
class CancelLogDownloadNotification extends NotificationDTO{
|
|
|
String? controlUserCode;
|
|
|
+ LoginSource loginSource;
|
|
|
|
|
|
CancelLogDownloadNotification({
|
|
|
NotificationTypeEnum notificationType = NotificationTypeEnum.Unknown,
|
|
|
this.controlUserCode,
|
|
|
+ this.loginSource = LoginSource.PC,
|
|
|
String? code,
|
|
|
bool isResponse = false,
|
|
|
}) : super(
|
|
@@ -2502,6 +2531,7 @@ class CancelLogDownloadNotification extends NotificationDTO{
|
|
|
return CancelLogDownloadNotification(
|
|
|
notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
|
|
|
controlUserCode: map['ControlUserCode'],
|
|
|
+ loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
|
|
|
code: map['Code'],
|
|
|
isResponse: map['IsResponse'],
|
|
|
);
|
|
@@ -2511,6 +2541,7 @@ class CancelLogDownloadNotification extends NotificationDTO{
|
|
|
final map = super.toJson();
|
|
|
if(controlUserCode != null)
|
|
|
map['ControlUserCode'] = controlUserCode;
|
|
|
+ map['LoginSource'] = loginSource.index;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -2923,12 +2954,14 @@ class GetRemoteLogToDeviceNotification extends NotificationDTO{
|
|
|
String? controlUserCode;
|
|
|
DateTime? startTime;
|
|
|
DateTime? endTime;
|
|
|
+ LoginSource loginSource;
|
|
|
|
|
|
GetRemoteLogToDeviceNotification({
|
|
|
NotificationTypeEnum notificationType = NotificationTypeEnum.Unknown,
|
|
|
this.controlUserCode,
|
|
|
this.startTime,
|
|
|
this.endTime,
|
|
|
+ this.loginSource = LoginSource.PC,
|
|
|
String? code,
|
|
|
bool isResponse = false,
|
|
|
}) : super(
|
|
@@ -2943,6 +2976,7 @@ class GetRemoteLogToDeviceNotification extends NotificationDTO{
|
|
|
controlUserCode: map['ControlUserCode'],
|
|
|
startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
|
|
|
endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
|
|
|
+ loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
|
|
|
code: map['Code'],
|
|
|
isResponse: map['IsResponse'],
|
|
|
);
|
|
@@ -2956,6 +2990,7 @@ class GetRemoteLogToDeviceNotification extends NotificationDTO{
|
|
|
map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
|
|
|
if(endTime != null)
|
|
|
map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
|
|
|
+ map['LoginSource'] = loginSource.index;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -3613,12 +3648,14 @@ class HeartRateLeaveConsultationNotification extends NotificationDTO{
|
|
|
class InviteLiveConsultationNotification extends NotificationDTO{
|
|
|
String? consultationCode;
|
|
|
int roomNo;
|
|
|
+ String? liveProtocol;
|
|
|
LiveConsultationMember? initiator;
|
|
|
|
|
|
InviteLiveConsultationNotification({
|
|
|
NotificationTypeEnum notificationType = NotificationTypeEnum.Unknown,
|
|
|
this.consultationCode,
|
|
|
this.roomNo = 0,
|
|
|
+ this.liveProtocol,
|
|
|
this.initiator,
|
|
|
String? code,
|
|
|
bool isResponse = false,
|
|
@@ -3633,6 +3670,7 @@ class InviteLiveConsultationNotification extends NotificationDTO{
|
|
|
notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
|
|
|
consultationCode: map['ConsultationCode'],
|
|
|
roomNo: map['RoomNo'],
|
|
|
+ liveProtocol: map['LiveProtocol'],
|
|
|
initiator: map['Initiator'] != null ? LiveConsultationMember.fromJson(map['Initiator']) : null,
|
|
|
code: map['Code'],
|
|
|
isResponse: map['IsResponse'],
|
|
@@ -3644,6 +3682,8 @@ class InviteLiveConsultationNotification extends NotificationDTO{
|
|
|
if(consultationCode != null)
|
|
|
map['ConsultationCode'] = consultationCode;
|
|
|
map['RoomNo'] = roomNo;
|
|
|
+ if(liveProtocol != null)
|
|
|
+ map['LiveProtocol'] = liveProtocol;
|
|
|
if(initiator != null)
|
|
|
map['Initiator'] = initiator;
|
|
|
return map;
|