|
@@ -3,6 +3,141 @@ import 'notification.m.dart';
|
|
|
|
|
|
import 'package:fis_common/json_convert.dart';
|
|
|
|
|
|
+class ApplicationSettingInfoDTO {
|
|
|
+ String? id;
|
|
|
+ String? name;
|
|
|
+ bool isPreferred;
|
|
|
+ bool isUserDefined;
|
|
|
+ bool isHidden;
|
|
|
+
|
|
|
+ ApplicationSettingInfoDTO({
|
|
|
+ this.id,
|
|
|
+ this.name,
|
|
|
+ this.isPreferred = false,
|
|
|
+ this.isUserDefined = false,
|
|
|
+ this.isHidden = false,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory ApplicationSettingInfoDTO.fromJson(Map<String, dynamic> map) {
|
|
|
+ return ApplicationSettingInfoDTO(
|
|
|
+ id: map['Id'],
|
|
|
+ name: map['Name'],
|
|
|
+ isPreferred: map['IsPreferred'],
|
|
|
+ isUserDefined: map['IsUserDefined'],
|
|
|
+ isHidden: map['IsHidden'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(id != null) {
|
|
|
+ map['Id'] = id;
|
|
|
+ }
|
|
|
+ if(name != null) {
|
|
|
+ map['Name'] = name;
|
|
|
+ }
|
|
|
+ map['IsPreferred'] = isPreferred;
|
|
|
+ map['IsUserDefined'] = isUserDefined;
|
|
|
+ map['IsHidden'] = isHidden;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+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 GetControlParametersRequest extends TokenRequest{
|
|
|
+ String? deviceCode;
|
|
|
+
|
|
|
+ GetControlParametersRequest({
|
|
|
+ this.deviceCode,
|
|
|
+ String? token,
|
|
|
+ }) : super(
|
|
|
+ token: token,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory GetControlParametersRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return GetControlParametersRequest(
|
|
|
+ deviceCode: map['DeviceCode'],
|
|
|
+ token: map['Token'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(deviceCode != null)
|
|
|
+ map['DeviceCode'] = deviceCode;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
enum ConnectStatusEnum {
|
|
|
UnConnect,
|
|
|
WaitConnect,
|
|
@@ -11,6 +146,158 @@ enum ConnectStatusEnum {
|
|
|
CompleteDisconnect,
|
|
|
}
|
|
|
|
|
|
+class UserRemoteConnectRequest {
|
|
|
+ TransactionTypeEnum transactionType;
|
|
|
+ ConnectStatusEnum statusEnum;
|
|
|
+ String? userToken;
|
|
|
+ String? deviceToken;
|
|
|
+ String? userCode;
|
|
|
+ String? roomId;
|
|
|
+ String? deviceCode;
|
|
|
+ LoginSource loginSource;
|
|
|
+ bool isNeedSyn;
|
|
|
+
|
|
|
+ UserRemoteConnectRequest({
|
|
|
+ this.transactionType = TransactionTypeEnum.Consultion,
|
|
|
+ this.statusEnum = ConnectStatusEnum.UnConnect,
|
|
|
+ this.userToken,
|
|
|
+ this.deviceToken,
|
|
|
+ this.userCode,
|
|
|
+ this.roomId,
|
|
|
+ this.deviceCode,
|
|
|
+ this.loginSource = LoginSource.PC,
|
|
|
+ this.isNeedSyn = false,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory UserRemoteConnectRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return UserRemoteConnectRequest(
|
|
|
+ transactionType: TransactionTypeEnum.values.firstWhere((e) => e.index == map['TransactionType']),
|
|
|
+ statusEnum: ConnectStatusEnum.values.firstWhere((e) => e.index == map['StatusEnum']),
|
|
|
+ userToken: map['UserToken'],
|
|
|
+ deviceToken: map['DeviceToken'],
|
|
|
+ userCode: map['UserCode'],
|
|
|
+ roomId: map['RoomId'],
|
|
|
+ deviceCode: map['DeviceCode'],
|
|
|
+ loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
|
|
|
+ isNeedSyn: map['IsNeedSyn'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ map['TransactionType'] = transactionType.index;
|
|
|
+ map['StatusEnum'] = statusEnum.index;
|
|
|
+ if(userToken != null) {
|
|
|
+ map['UserToken'] = userToken;
|
|
|
+ }
|
|
|
+ if(deviceToken != null) {
|
|
|
+ map['DeviceToken'] = deviceToken;
|
|
|
+ }
|
|
|
+ if(userCode != null) {
|
|
|
+ map['UserCode'] = userCode;
|
|
|
+ }
|
|
|
+ if(roomId != null) {
|
|
|
+ map['RoomId'] = roomId;
|
|
|
+ }
|
|
|
+ if(deviceCode != null) {
|
|
|
+ map['DeviceCode'] = deviceCode;
|
|
|
+ }
|
|
|
+ map['LoginSource'] = loginSource.index;
|
|
|
+ map['IsNeedSyn'] = isNeedSyn;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class DeviceRemoteConnectRequest {
|
|
|
+ TransactionTypeEnum transactionType;
|
|
|
+ ConnectStatusEnum statusEnum;
|
|
|
+ String? userToken;
|
|
|
+ String? deviceToken;
|
|
|
+ String? userCode;
|
|
|
+ String? roomId;
|
|
|
+ String? deviceCode;
|
|
|
+ bool isNeedSyn;
|
|
|
+ LoginSource loginSource;
|
|
|
+
|
|
|
+ DeviceRemoteConnectRequest({
|
|
|
+ this.transactionType = TransactionTypeEnum.Consultion,
|
|
|
+ this.statusEnum = ConnectStatusEnum.UnConnect,
|
|
|
+ this.userToken,
|
|
|
+ this.deviceToken,
|
|
|
+ this.userCode,
|
|
|
+ this.roomId,
|
|
|
+ this.deviceCode,
|
|
|
+ this.isNeedSyn = false,
|
|
|
+ this.loginSource = LoginSource.PC,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory DeviceRemoteConnectRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return DeviceRemoteConnectRequest(
|
|
|
+ transactionType: TransactionTypeEnum.values.firstWhere((e) => e.index == map['TransactionType']),
|
|
|
+ statusEnum: ConnectStatusEnum.values.firstWhere((e) => e.index == map['StatusEnum']),
|
|
|
+ userToken: map['UserToken'],
|
|
|
+ deviceToken: map['DeviceToken'],
|
|
|
+ userCode: map['UserCode'],
|
|
|
+ roomId: map['RoomId'],
|
|
|
+ deviceCode: map['DeviceCode'],
|
|
|
+ isNeedSyn: map['IsNeedSyn'],
|
|
|
+ loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ map['TransactionType'] = transactionType.index;
|
|
|
+ map['StatusEnum'] = statusEnum.index;
|
|
|
+ if(userToken != null) {
|
|
|
+ map['UserToken'] = userToken;
|
|
|
+ }
|
|
|
+ if(deviceToken != null) {
|
|
|
+ map['DeviceToken'] = deviceToken;
|
|
|
+ }
|
|
|
+ if(userCode != null) {
|
|
|
+ map['UserCode'] = userCode;
|
|
|
+ }
|
|
|
+ if(roomId != null) {
|
|
|
+ map['RoomId'] = roomId;
|
|
|
+ }
|
|
|
+ if(deviceCode != null) {
|
|
|
+ map['DeviceCode'] = deviceCode;
|
|
|
+ }
|
|
|
+ map['IsNeedSyn'] = isNeedSyn;
|
|
|
+ map['LoginSource'] = loginSource.index;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class RemoteConnectsRequest {
|
|
|
+ List<UserRemoteConnectRequest>? userRemoteConnect;
|
|
|
+ List<DeviceRemoteConnectRequest>? deviceRemoteConnect;
|
|
|
+
|
|
|
+ RemoteConnectsRequest({
|
|
|
+ this.userRemoteConnect,
|
|
|
+ this.deviceRemoteConnect,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory RemoteConnectsRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return RemoteConnectsRequest(
|
|
|
+ userRemoteConnect: map['UserRemoteConnect'] != null ? (map['UserRemoteConnect'] as List).map((e)=>UserRemoteConnectRequest.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ deviceRemoteConnect: map['DeviceRemoteConnect'] != null ? (map['DeviceRemoteConnect'] as List).map((e)=>DeviceRemoteConnectRequest.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(userRemoteConnect != null) {
|
|
|
+ map['UserRemoteConnect'] = userRemoteConnect;
|
|
|
+ }
|
|
|
+ if(deviceRemoteConnect != null) {
|
|
|
+ map['DeviceRemoteConnect'] = deviceRemoteConnect;
|
|
|
+ }
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
class GetDeviceRequest extends TokenRequest{
|
|
|
String? deviceCode;
|
|
|
bool isNeedSyn;
|
|
@@ -363,6 +650,7 @@ class DeviceExtendInfoDTO extends DeviceInfoDTO{
|
|
|
bool isEmergencyDevice;
|
|
|
bool isCanRemoteMaintenance;
|
|
|
bool isCanRestart;
|
|
|
+ OrganizationPatientTypeEnum patientType;
|
|
|
|
|
|
DeviceExtendInfoDTO({
|
|
|
this.organizationName,
|
|
@@ -376,6 +664,7 @@ class DeviceExtendInfoDTO extends DeviceInfoDTO{
|
|
|
this.isEmergencyDevice = false,
|
|
|
this.isCanRemoteMaintenance = false,
|
|
|
this.isCanRestart = false,
|
|
|
+ this.patientType = OrganizationPatientTypeEnum.Person,
|
|
|
String? deviceCode,
|
|
|
String? serialNumber,
|
|
|
String? password,
|
|
@@ -454,6 +743,7 @@ class DeviceExtendInfoDTO extends DeviceInfoDTO{
|
|
|
isEmergencyDevice: map['IsEmergencyDevice'],
|
|
|
isCanRemoteMaintenance: map['IsCanRemoteMaintenance'],
|
|
|
isCanRestart: map['IsCanRestart'],
|
|
|
+ patientType: OrganizationPatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
|
|
|
deviceCode: map['DeviceCode'],
|
|
|
serialNumber: map['SerialNumber'],
|
|
|
password: map['Password'],
|
|
@@ -507,6 +797,7 @@ class DeviceExtendInfoDTO extends DeviceInfoDTO{
|
|
|
map['IsEmergencyDevice'] = isEmergencyDevice;
|
|
|
map['IsCanRemoteMaintenance'] = isCanRemoteMaintenance;
|
|
|
map['IsCanRestart'] = isCanRestart;
|
|
|
+ map['PatientType'] = patientType.index;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -761,6 +1052,31 @@ class CreateDeviceRequest extends UploadDeviceDTO{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class FindDeviceInfoByNameRequest extends TokenRequest{
|
|
|
+ String? name;
|
|
|
+
|
|
|
+ FindDeviceInfoByNameRequest({
|
|
|
+ this.name,
|
|
|
+ String? token,
|
|
|
+ }) : super(
|
|
|
+ token: token,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory FindDeviceInfoByNameRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return FindDeviceInfoByNameRequest(
|
|
|
+ name: map['Name'],
|
|
|
+ token: map['Token'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(name != null)
|
|
|
+ map['Name'] = name;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
class GetDeviceByShortCodeRequest extends TokenRequest{
|
|
|
String? shortCode;
|
|
|
|
|
@@ -928,6 +1244,121 @@ class ModifyDeviceRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class UpdateDeviceRequest extends DeviceInfoDTO{
|
|
|
+ String? token;
|
|
|
+
|
|
|
+ UpdateDeviceRequest({
|
|
|
+ this.token,
|
|
|
+ String? deviceCode,
|
|
|
+ String? serialNumber,
|
|
|
+ String? password,
|
|
|
+ String? name,
|
|
|
+ String? description,
|
|
|
+ String? deviceModel,
|
|
|
+ String? deviceType,
|
|
|
+ String? headPicUrl,
|
|
|
+ String? deviceSoftwareVersion,
|
|
|
+ String? sDKSoftwareVersion,
|
|
|
+ String? organizationCode,
|
|
|
+ String? departmentCode,
|
|
|
+ String? shortCode,
|
|
|
+ bool isAutoShared = false,
|
|
|
+ bool isEncryptedShow = false,
|
|
|
+ DateTime? lastLoginTime,
|
|
|
+ String? systemVersion,
|
|
|
+ String? cPUModel,
|
|
|
+ String? systemLanguage,
|
|
|
+ List<String>? diagnosisModules,
|
|
|
+ List<String>? reportPosterCodes,
|
|
|
+ bool mergedChannel = false,
|
|
|
+ int mergedVideoOutputWidth = 0,
|
|
|
+ int mergedVideoOutputHeight = 0,
|
|
|
+ List<VideoDeviceDTO>? videoDeviceInfos,
|
|
|
+ DownloadModeSettingEnum downloadModeSetting = DownloadModeSettingEnum.Auto,
|
|
|
+ bool liveOpened = false,
|
|
|
+ bool supportRtc = false,
|
|
|
+ String? displayName,
|
|
|
+ DateTime? createTime,
|
|
|
+ DateTime? updateTime,
|
|
|
+ }) : super(
|
|
|
+ deviceCode: deviceCode,
|
|
|
+ serialNumber: serialNumber,
|
|
|
+ password: password,
|
|
|
+ name: name,
|
|
|
+ description: description,
|
|
|
+ deviceModel: deviceModel,
|
|
|
+ deviceType: deviceType,
|
|
|
+ headPicUrl: headPicUrl,
|
|
|
+ deviceSoftwareVersion: deviceSoftwareVersion,
|
|
|
+ sDKSoftwareVersion: sDKSoftwareVersion,
|
|
|
+ organizationCode: organizationCode,
|
|
|
+ departmentCode: departmentCode,
|
|
|
+ shortCode: shortCode,
|
|
|
+ isAutoShared: isAutoShared,
|
|
|
+ isEncryptedShow: isEncryptedShow,
|
|
|
+ lastLoginTime: lastLoginTime,
|
|
|
+ systemVersion: systemVersion,
|
|
|
+ cPUModel: cPUModel,
|
|
|
+ systemLanguage: systemLanguage,
|
|
|
+ diagnosisModules: diagnosisModules,
|
|
|
+ reportPosterCodes: reportPosterCodes,
|
|
|
+ mergedChannel: mergedChannel,
|
|
|
+ mergedVideoOutputWidth: mergedVideoOutputWidth,
|
|
|
+ mergedVideoOutputHeight: mergedVideoOutputHeight,
|
|
|
+ videoDeviceInfos: videoDeviceInfos,
|
|
|
+ downloadModeSetting: downloadModeSetting,
|
|
|
+ liveOpened: liveOpened,
|
|
|
+ supportRtc: supportRtc,
|
|
|
+ displayName: displayName,
|
|
|
+ createTime: createTime,
|
|
|
+ updateTime: updateTime,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory UpdateDeviceRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return UpdateDeviceRequest(
|
|
|
+ token: map['Token'],
|
|
|
+ deviceCode: map['DeviceCode'],
|
|
|
+ serialNumber: map['SerialNumber'],
|
|
|
+ password: map['Password'],
|
|
|
+ name: map['Name'],
|
|
|
+ description: map['Description'],
|
|
|
+ deviceModel: map['DeviceModel'],
|
|
|
+ deviceType: map['DeviceType'],
|
|
|
+ headPicUrl: map['HeadPicUrl'],
|
|
|
+ deviceSoftwareVersion: map['DeviceSoftwareVersion'],
|
|
|
+ sDKSoftwareVersion: map['SDKSoftwareVersion'],
|
|
|
+ organizationCode: map['OrganizationCode'],
|
|
|
+ departmentCode: map['DepartmentCode'],
|
|
|
+ shortCode: map['ShortCode'],
|
|
|
+ isAutoShared: map['IsAutoShared'],
|
|
|
+ isEncryptedShow: map['IsEncryptedShow'],
|
|
|
+ lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
|
|
|
+ systemVersion: map['SystemVersion'],
|
|
|
+ cPUModel: map['CPUModel'],
|
|
|
+ systemLanguage: map['SystemLanguage'],
|
|
|
+ diagnosisModules: map['DiagnosisModules']?.cast<String>().toList(),
|
|
|
+ reportPosterCodes: map['ReportPosterCodes']?.cast<String>().toList(),
|
|
|
+ mergedChannel: map['MergedChannel'],
|
|
|
+ mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
|
|
|
+ mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
|
|
|
+ videoDeviceInfos: map['VideoDeviceInfos'] != null ? (map['VideoDeviceInfos'] as List).map((e)=>VideoDeviceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ downloadModeSetting: DownloadModeSettingEnum.values.firstWhere((e) => e.index == map['DownloadModeSetting']),
|
|
|
+ liveOpened: map['LiveOpened'],
|
|
|
+ supportRtc: map['SupportRtc'],
|
|
|
+ displayName: map['DisplayName'],
|
|
|
+ createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
+ updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(token != null)
|
|
|
+ map['Token'] = token;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
enum DictionaryTypeEnum {
|
|
|
DeviceModel,
|
|
|
DeviceType,
|
|
@@ -1242,6 +1673,7 @@ class DeviceServerSettingResult {
|
|
|
int remoteControlAskTimeoutSec;
|
|
|
String? liveProtocol;
|
|
|
TransactionStatusEnum liveProtocolType;
|
|
|
+ String? fISWebUrl;
|
|
|
|
|
|
DeviceServerSettingResult({
|
|
|
this.serverConfigList,
|
|
@@ -1257,6 +1689,7 @@ class DeviceServerSettingResult {
|
|
|
this.remoteControlAskTimeoutSec = 0,
|
|
|
this.liveProtocol,
|
|
|
this.liveProtocolType = TransactionStatusEnum.Applied,
|
|
|
+ this.fISWebUrl,
|
|
|
});
|
|
|
|
|
|
factory DeviceServerSettingResult.fromJson(Map<String, dynamic> map) {
|
|
@@ -1274,6 +1707,7 @@ class DeviceServerSettingResult {
|
|
|
remoteControlAskTimeoutSec: map['RemoteControlAskTimeoutSec'],
|
|
|
liveProtocol: map['LiveProtocol'],
|
|
|
liveProtocolType: TransactionStatusEnum.values.firstWhere((e) => e.index == map['LiveProtocolType']),
|
|
|
+ fISWebUrl: map['FISWebUrl'],
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -1298,6 +1732,9 @@ class DeviceServerSettingResult {
|
|
|
map['LiveProtocol'] = liveProtocol;
|
|
|
}
|
|
|
map['LiveProtocolType'] = liveProtocolType.index;
|
|
|
+ if(fISWebUrl != null) {
|
|
|
+ map['FISWebUrl'] = fISWebUrl;
|
|
|
+ }
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -1527,55 +1964,15 @@ class ReportVideoDeviceInfoRequest extends TokenRequest{
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = super.toJson();
|
|
|
- map['LiveOpened'] = liveOpened;
|
|
|
- map['SupportRtc'] = supportRtc;
|
|
|
- map['MergedChannel'] = mergedChannel;
|
|
|
- map['RemoteControlOpened'] = remoteControlOpened;
|
|
|
- if(videoDeviceInfos != null)
|
|
|
- map['VideoDeviceInfos'] = videoDeviceInfos;
|
|
|
- map['IsSync'] = isSync;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class ApplicationSettingInfoDTO {
|
|
|
- String? id;
|
|
|
- String? name;
|
|
|
- bool isPreferred;
|
|
|
- bool isUserDefined;
|
|
|
- bool isHidden;
|
|
|
-
|
|
|
- ApplicationSettingInfoDTO({
|
|
|
- this.id,
|
|
|
- this.name,
|
|
|
- this.isPreferred = false,
|
|
|
- this.isUserDefined = false,
|
|
|
- this.isHidden = false,
|
|
|
- });
|
|
|
-
|
|
|
- factory ApplicationSettingInfoDTO.fromJson(Map<String, dynamic> map) {
|
|
|
- return ApplicationSettingInfoDTO(
|
|
|
- id: map['Id'],
|
|
|
- name: map['Name'],
|
|
|
- isPreferred: map['IsPreferred'],
|
|
|
- isUserDefined: map['IsUserDefined'],
|
|
|
- isHidden: map['IsHidden'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = Map<String, dynamic>();
|
|
|
- if(id != null) {
|
|
|
- map['Id'] = id;
|
|
|
- }
|
|
|
- if(name != null) {
|
|
|
- map['Name'] = name;
|
|
|
- }
|
|
|
- map['IsPreferred'] = isPreferred;
|
|
|
- map['IsUserDefined'] = isUserDefined;
|
|
|
- map['IsHidden'] = isHidden;
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ map['LiveOpened'] = liveOpened;
|
|
|
+ map['SupportRtc'] = supportRtc;
|
|
|
+ map['MergedChannel'] = mergedChannel;
|
|
|
+ map['RemoteControlOpened'] = remoteControlOpened;
|
|
|
+ if(videoDeviceInfos != null)
|
|
|
+ map['VideoDeviceInfos'] = videoDeviceInfos;
|
|
|
+ map['IsSync'] = isSync;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -2323,31 +2720,6 @@ class DeviceControlParameterDataDTO {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class GetControlParametersRequest extends TokenRequest{
|
|
|
- String? deviceCode;
|
|
|
-
|
|
|
- GetControlParametersRequest({
|
|
|
- this.deviceCode,
|
|
|
- String? token,
|
|
|
- }) : super(
|
|
|
- token: token,
|
|
|
- );
|
|
|
-
|
|
|
- factory GetControlParametersRequest.fromJson(Map<String, dynamic> map) {
|
|
|
- return GetControlParametersRequest(
|
|
|
- deviceCode: map['DeviceCode'],
|
|
|
- token: map['Token'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = super.toJson();
|
|
|
- if(deviceCode != null)
|
|
|
- map['DeviceCode'] = deviceCode;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
class ControlDeviceConnectRequest extends BaseControlDeviceRequest{
|
|
|
String? deviceCode;
|
|
|
String? roomCode;
|
|
@@ -3749,76 +4121,6 @@ class DeivceCancelLogDownloadRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-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 ProbeApplicationSettingRequest extends TokenRequest{
|
|
|
String? deviceCode;
|
|
|
ProbeApplicationSettingInfoDTO? probeApplicationSetting;
|
|
@@ -3887,156 +4189,4 @@ class ProbeApplicationSettingResultRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class UserRemoteConnectRequest {
|
|
|
- TransactionTypeEnum transactionType;
|
|
|
- ConnectStatusEnum statusEnum;
|
|
|
- String? userToken;
|
|
|
- String? deviceToken;
|
|
|
- String? userCode;
|
|
|
- String? roomId;
|
|
|
- String? deviceCode;
|
|
|
- LoginSource loginSource;
|
|
|
- bool isNeedSyn;
|
|
|
-
|
|
|
- UserRemoteConnectRequest({
|
|
|
- this.transactionType = TransactionTypeEnum.Consultion,
|
|
|
- this.statusEnum = ConnectStatusEnum.UnConnect,
|
|
|
- this.userToken,
|
|
|
- this.deviceToken,
|
|
|
- this.userCode,
|
|
|
- this.roomId,
|
|
|
- this.deviceCode,
|
|
|
- this.loginSource = LoginSource.PC,
|
|
|
- this.isNeedSyn = false,
|
|
|
- });
|
|
|
-
|
|
|
- factory UserRemoteConnectRequest.fromJson(Map<String, dynamic> map) {
|
|
|
- return UserRemoteConnectRequest(
|
|
|
- transactionType: TransactionTypeEnum.values.firstWhere((e) => e.index == map['TransactionType']),
|
|
|
- statusEnum: ConnectStatusEnum.values.firstWhere((e) => e.index == map['StatusEnum']),
|
|
|
- userToken: map['UserToken'],
|
|
|
- deviceToken: map['DeviceToken'],
|
|
|
- userCode: map['UserCode'],
|
|
|
- roomId: map['RoomId'],
|
|
|
- deviceCode: map['DeviceCode'],
|
|
|
- loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
|
|
|
- isNeedSyn: map['IsNeedSyn'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = Map<String, dynamic>();
|
|
|
- map['TransactionType'] = transactionType.index;
|
|
|
- map['StatusEnum'] = statusEnum.index;
|
|
|
- if(userToken != null) {
|
|
|
- map['UserToken'] = userToken;
|
|
|
- }
|
|
|
- if(deviceToken != null) {
|
|
|
- map['DeviceToken'] = deviceToken;
|
|
|
- }
|
|
|
- if(userCode != null) {
|
|
|
- map['UserCode'] = userCode;
|
|
|
- }
|
|
|
- if(roomId != null) {
|
|
|
- map['RoomId'] = roomId;
|
|
|
- }
|
|
|
- if(deviceCode != null) {
|
|
|
- map['DeviceCode'] = deviceCode;
|
|
|
- }
|
|
|
- map['LoginSource'] = loginSource.index;
|
|
|
- map['IsNeedSyn'] = isNeedSyn;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class DeviceRemoteConnectRequest {
|
|
|
- TransactionTypeEnum transactionType;
|
|
|
- ConnectStatusEnum statusEnum;
|
|
|
- String? userToken;
|
|
|
- String? deviceToken;
|
|
|
- String? userCode;
|
|
|
- String? roomId;
|
|
|
- String? deviceCode;
|
|
|
- bool isNeedSyn;
|
|
|
- LoginSource loginSource;
|
|
|
-
|
|
|
- DeviceRemoteConnectRequest({
|
|
|
- this.transactionType = TransactionTypeEnum.Consultion,
|
|
|
- this.statusEnum = ConnectStatusEnum.UnConnect,
|
|
|
- this.userToken,
|
|
|
- this.deviceToken,
|
|
|
- this.userCode,
|
|
|
- this.roomId,
|
|
|
- this.deviceCode,
|
|
|
- this.isNeedSyn = false,
|
|
|
- this.loginSource = LoginSource.PC,
|
|
|
- });
|
|
|
-
|
|
|
- factory DeviceRemoteConnectRequest.fromJson(Map<String, dynamic> map) {
|
|
|
- return DeviceRemoteConnectRequest(
|
|
|
- transactionType: TransactionTypeEnum.values.firstWhere((e) => e.index == map['TransactionType']),
|
|
|
- statusEnum: ConnectStatusEnum.values.firstWhere((e) => e.index == map['StatusEnum']),
|
|
|
- userToken: map['UserToken'],
|
|
|
- deviceToken: map['DeviceToken'],
|
|
|
- userCode: map['UserCode'],
|
|
|
- roomId: map['RoomId'],
|
|
|
- deviceCode: map['DeviceCode'],
|
|
|
- isNeedSyn: map['IsNeedSyn'],
|
|
|
- loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = Map<String, dynamic>();
|
|
|
- map['TransactionType'] = transactionType.index;
|
|
|
- map['StatusEnum'] = statusEnum.index;
|
|
|
- if(userToken != null) {
|
|
|
- map['UserToken'] = userToken;
|
|
|
- }
|
|
|
- if(deviceToken != null) {
|
|
|
- map['DeviceToken'] = deviceToken;
|
|
|
- }
|
|
|
- if(userCode != null) {
|
|
|
- map['UserCode'] = userCode;
|
|
|
- }
|
|
|
- if(roomId != null) {
|
|
|
- map['RoomId'] = roomId;
|
|
|
- }
|
|
|
- if(deviceCode != null) {
|
|
|
- map['DeviceCode'] = deviceCode;
|
|
|
- }
|
|
|
- map['IsNeedSyn'] = isNeedSyn;
|
|
|
- map['LoginSource'] = loginSource.index;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class RemoteConnectsRequest {
|
|
|
- List<UserRemoteConnectRequest>? userRemoteConnect;
|
|
|
- List<DeviceRemoteConnectRequest>? deviceRemoteConnect;
|
|
|
-
|
|
|
- RemoteConnectsRequest({
|
|
|
- this.userRemoteConnect,
|
|
|
- this.deviceRemoteConnect,
|
|
|
- });
|
|
|
-
|
|
|
- factory RemoteConnectsRequest.fromJson(Map<String, dynamic> map) {
|
|
|
- return RemoteConnectsRequest(
|
|
|
- userRemoteConnect: map['UserRemoteConnect'] != null ? (map['UserRemoteConnect'] as List).map((e)=>UserRemoteConnectRequest.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
- deviceRemoteConnect: map['DeviceRemoteConnect'] != null ? (map['DeviceRemoteConnect'] as List).map((e)=>DeviceRemoteConnectRequest.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = Map<String, dynamic>();
|
|
|
- if(userRemoteConnect != null) {
|
|
|
- map['UserRemoteConnect'] = userRemoteConnect;
|
|
|
- }
|
|
|
- if(deviceRemoteConnect != null) {
|
|
|
- map['DeviceRemoteConnect'] = deviceRemoteConnect;
|
|
|
- }
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
|