|
@@ -5,9 +5,9 @@ import 'package:fis_common/json_convert.dart';
|
|
|
|
|
|
import 'device.m.dart';
|
|
|
|
|
|
-import 'notification.m.dart';
|
|
|
import 'researchEdition.m.dart';
|
|
|
import 'liveConsultation.m.dart';
|
|
|
+import 'notification.m.dart';
|
|
|
|
|
|
|
|
|
class DeviceService extends JsonRpcClientBase {
|
|
@@ -23,17 +23,12 @@ class DeviceService extends JsonRpcClientBase {
|
|
|
timeout: timeout,
|
|
|
) {
|
|
|
|
|
|
- FJsonConvert.setDecoder((map) => ProbeApplicationSettingInfoDTO.fromJson(map));
|
|
|
- FJsonConvert.setDecoder((map) => RemoteConnectsRequest.fromJson(map));
|
|
|
- FJsonConvert.setDecoder((map) => DevicePrinterParameterDTO.fromJson(map));
|
|
|
- FJsonConvert.setDecoder((map) => PageCollection<DeviceExtendInfoDTO>.fromJson(map));
|
|
|
- FJsonConvert.setDecoder((map) => DeviceExtendInfoDTO.fromJson(map));
|
|
|
- FJsonConvert.setDecoder((map) => PageCollection<SelectItemDTO>.fromJson(map));
|
|
|
- FJsonConvert.setDecoder((map) => SelectItemDTO.fromJson(map));
|
|
|
- FJsonConvert.setDecoder((map) => LicenseInfoBasicDTO.fromJson(map));
|
|
|
FJsonConvert.setDecoder((map) => DeviceInfoDTO.fromJson(map));
|
|
|
+ FJsonConvert.setDecoder((map) => DeviceExtendInfoDTO.fromJson(map));
|
|
|
FJsonConvert.setDecoder((map) => PageCollection<DeviceInfoDTO>.fromJson(map));
|
|
|
FJsonConvert.setDecoder((map) => DictionaryDTO.fromJson(map));
|
|
|
+ FJsonConvert.setDecoder((map) => PageCollection<DeviceExtendInfoDTO>.fromJson(map));
|
|
|
+ FJsonConvert.setDecoder((map) => SelectItemDTO.fromJson(map));
|
|
|
FJsonConvert.setDecoder((map) => DeviceServerSettingResult.fromJson(map));
|
|
|
FJsonConvert.setDecoder((map) => DiagnosisModuleDTO.fromJson(map));
|
|
|
FJsonConvert.setDecoder((map) => ReportVideoDeviceInfoResult.fromJson(map));
|
|
@@ -50,83 +45,11 @@ class DeviceService extends JsonRpcClientBase {
|
|
|
FJsonConvert.setDecoder((map) => PageResult<DevicePrinterDTO>.fromJson(map));
|
|
|
FJsonConvert.setDecoder((map) => DevicePrinterDTO.fromJson(map));
|
|
|
FJsonConvert.setDecoder((map) => DeviceConnectStateResult.fromJson(map));
|
|
|
- }
|
|
|
-
|
|
|
- Future<ProbeApplicationSettingInfoDTO> getProbeApplicationSettingAsync(GetControlParametersRequest request) async {
|
|
|
- var rpcRst = await call("GetProbeApplicationSettingAsync", request);
|
|
|
- var result = ProbeApplicationSettingInfoDTO.fromJson(rpcRst as Map<String, dynamic>);
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- Future<RemoteConnectsRequest> findConnectingDeviceListAsync(GetDeviceRequest request) async {
|
|
|
- var rpcRst = await call("FindConnectingDeviceListAsync", request);
|
|
|
- var result = RemoteConnectsRequest.fromJson(rpcRst as Map<String, dynamic>);
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- Future<bool> closeConnectingDeviceListAsync(GetDeviceRequest request) async {
|
|
|
- var rpcRst = await call("CloseConnectingDeviceListAsync", request);
|
|
|
- return rpcRst;
|
|
|
- }
|
|
|
-
|
|
|
- Future<List<DevicePrinterParameterDTO>> getDevicePrintersForUploadAsync(GetDevicePrintersForUploadRequest request) async {
|
|
|
- var rpcRst = await call("GetDevicePrintersForUploadAsync", request);
|
|
|
- var result = (rpcRst as List).map((e)=>DevicePrinterParameterDTO.fromJson(e as Map<String, dynamic>)).toList();
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- Future<List<String>> getDevicePatchTypeListAsync(TokenRequest request) async {
|
|
|
- var rpcRst = await call("GetDevicePatchTypeListAsync", request);
|
|
|
- var result = (rpcRst as List).cast<String>().toList();
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- Future<bool> existsDevicePrinterAsync(ExistsDevicePrinterRequest request) async {
|
|
|
- var rpcRst = await call("ExistsDevicePrinterAsync", request);
|
|
|
- return rpcRst;
|
|
|
- }
|
|
|
-
|
|
|
- Future<bool> batchInsertDevicePrintersDataAsync(MigrateDevicePrinterRequest request) async {
|
|
|
- var rpcRst = await call("BatchInsertDevicePrintersDataAsync", request);
|
|
|
- return rpcRst;
|
|
|
- }
|
|
|
-
|
|
|
- Future<bool> batchInsertDevicePatchsDataAsync(MigrateDevicePatchRequest request) async {
|
|
|
- var rpcRst = await call("BatchInsertDevicePatchsDataAsync", request);
|
|
|
- return rpcRst;
|
|
|
- }
|
|
|
-
|
|
|
- Future<PageCollection<DeviceExtendInfoDTO>> getOrganizationDeviceListAsync(GetPersonDeviceRequest request) async {
|
|
|
- var rpcRst = await call("GetOrganizationDeviceListAsync", request);
|
|
|
- var result = PageCollection<DeviceExtendInfoDTO>.fromJson(rpcRst as Map<String, dynamic>);
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- Future<PageCollection<SelectItemDTO>> getPersonDeviceDropdownPageAsync(GetPersonDeviceDropdownPageRequest request) async {
|
|
|
- var rpcRst = await call("GetPersonDeviceDropdownPageAsync", request);
|
|
|
- var result = PageCollection<SelectItemDTO>.fromJson(rpcRst as Map<String, dynamic>);
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- Future<bool> existConnectingDeviceInfoAsync(GetDeviceRequest request) async {
|
|
|
- var rpcRst = await call("ExistConnectingDeviceInfoAsync", request);
|
|
|
- return rpcRst;
|
|
|
- }
|
|
|
-
|
|
|
- Future<List<LicenseInfoBasicDTO>> getLicenseInfoListAsync(TokenRequest request) async {
|
|
|
- var rpcRst = await call("GetLicenseInfoListAsync", request);
|
|
|
- var result = (rpcRst as List).map((e)=>LicenseInfoBasicDTO.fromJson(e as Map<String, dynamic>)).toList();
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- Future<bool> saveLicenseInfoListAsync(SaveLicenseInfoRequest request) async {
|
|
|
- var rpcRst = await call("SaveLicenseInfoListAsync", request);
|
|
|
- return rpcRst;
|
|
|
- }
|
|
|
-
|
|
|
- Future<bool> saveDongleInfoListAsync(SaveDongleInfoRequest request) async {
|
|
|
- var rpcRst = await call("SaveDongleInfoListAsync", request);
|
|
|
- return rpcRst;
|
|
|
+ FJsonConvert.setDecoder((map) => ProbeApplicationSettingInfoDTO.fromJson(map));
|
|
|
+ FJsonConvert.setDecoder((map) => RemoteConnectsRequest.fromJson(map));
|
|
|
+ FJsonConvert.setDecoder((map) => DevicePrinterParameterDTO.fromJson(map));
|
|
|
+ FJsonConvert.setDecoder((map) => PageCollection<SelectItemDTO>.fromJson(map));
|
|
|
+ FJsonConvert.setDecoder((map) => LicenseInfoBasicDTO.fromJson(map));
|
|
|
}
|
|
|
|
|
|
Future<bool> heartRateAsync(TokenRequest request) async {
|
|
@@ -584,5 +507,82 @@ class DeviceService extends JsonRpcClientBase {
|
|
|
return rpcRst;
|
|
|
}
|
|
|
|
|
|
+ Future<ProbeApplicationSettingInfoDTO> getProbeApplicationSettingAsync(GetControlParametersRequest request) async {
|
|
|
+ var rpcRst = await call("GetProbeApplicationSettingAsync", request);
|
|
|
+ var result = ProbeApplicationSettingInfoDTO.fromJson(rpcRst as Map<String, dynamic>);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ Future<RemoteConnectsRequest> findConnectingDeviceListAsync(GetDeviceRequest request) async {
|
|
|
+ var rpcRst = await call("FindConnectingDeviceListAsync", request);
|
|
|
+ var result = RemoteConnectsRequest.fromJson(rpcRst as Map<String, dynamic>);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ Future<bool> closeConnectingDeviceListAsync(GetDeviceRequest request) async {
|
|
|
+ var rpcRst = await call("CloseConnectingDeviceListAsync", request);
|
|
|
+ return rpcRst;
|
|
|
+ }
|
|
|
+
|
|
|
+ Future<List<DevicePrinterParameterDTO>> getDevicePrintersForUploadAsync(GetDevicePrintersForUploadRequest request) async {
|
|
|
+ var rpcRst = await call("GetDevicePrintersForUploadAsync", request);
|
|
|
+ var result = (rpcRst as List).map((e)=>DevicePrinterParameterDTO.fromJson(e as Map<String, dynamic>)).toList();
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ Future<List<String>> getDevicePatchTypeListAsync(TokenRequest request) async {
|
|
|
+ var rpcRst = await call("GetDevicePatchTypeListAsync", request);
|
|
|
+ var result = (rpcRst as List).cast<String>().toList();
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ Future<bool> existsDevicePrinterAsync(ExistsDevicePrinterRequest request) async {
|
|
|
+ var rpcRst = await call("ExistsDevicePrinterAsync", request);
|
|
|
+ return rpcRst;
|
|
|
+ }
|
|
|
+
|
|
|
+ Future<bool> batchInsertDevicePrintersDataAsync(MigrateDevicePrinterRequest request) async {
|
|
|
+ var rpcRst = await call("BatchInsertDevicePrintersDataAsync", request);
|
|
|
+ return rpcRst;
|
|
|
+ }
|
|
|
+
|
|
|
+ Future<bool> batchInsertDevicePatchsDataAsync(MigrateDevicePatchRequest request) async {
|
|
|
+ var rpcRst = await call("BatchInsertDevicePatchsDataAsync", request);
|
|
|
+ return rpcRst;
|
|
|
+ }
|
|
|
+
|
|
|
+ Future<PageCollection<DeviceExtendInfoDTO>> getOrganizationDeviceListAsync(GetPersonDeviceRequest request) async {
|
|
|
+ var rpcRst = await call("GetOrganizationDeviceListAsync", request);
|
|
|
+ var result = PageCollection<DeviceExtendInfoDTO>.fromJson(rpcRst as Map<String, dynamic>);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ Future<PageCollection<SelectItemDTO>> getPersonDeviceDropdownPageAsync(GetPersonDeviceDropdownPageRequest request) async {
|
|
|
+ var rpcRst = await call("GetPersonDeviceDropdownPageAsync", request);
|
|
|
+ var result = PageCollection<SelectItemDTO>.fromJson(rpcRst as Map<String, dynamic>);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ Future<bool> existConnectingDeviceInfoAsync(GetDeviceRequest request) async {
|
|
|
+ var rpcRst = await call("ExistConnectingDeviceInfoAsync", request);
|
|
|
+ return rpcRst;
|
|
|
+ }
|
|
|
+
|
|
|
+ Future<List<LicenseInfoBasicDTO>> getLicenseInfoListAsync(TokenRequest request) async {
|
|
|
+ var rpcRst = await call("GetLicenseInfoListAsync", request);
|
|
|
+ var result = (rpcRst as List).map((e)=>LicenseInfoBasicDTO.fromJson(e as Map<String, dynamic>)).toList();
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ Future<bool> saveLicenseInfoListAsync(SaveLicenseInfoRequest request) async {
|
|
|
+ var rpcRst = await call("SaveLicenseInfoListAsync", request);
|
|
|
+ return rpcRst;
|
|
|
+ }
|
|
|
+
|
|
|
+ Future<bool> saveDongleInfoListAsync(SaveDongleInfoRequest request) async {
|
|
|
+ var rpcRst = await call("SaveDongleInfoListAsync", request);
|
|
|
+ return rpcRst;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|