Update rename device api

APiTesting
Akeela Azhar 1 year ago
parent 0b10c33dcf
commit 29458fdfc5

@ -489,7 +489,7 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
Device persistedDevice = deviceManagementProviderService.getDevice(new DeviceIdentifier
(deviceId, deviceType), true);
persistedDevice.setName(device.getName());
System.out.println("This is rename device");
System.out.println("This is renamed device");
boolean responseOfmodifyEnrollment = deviceManagementProviderService.modifyEnrollment(persistedDevice);
boolean responseOfDeviceNameChanged = deviceManagementProviderService.sendDeviceNameChangedNotification(
persistedDevice);
@ -527,7 +527,7 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
// Define the spreadsheet ID and range
String spreadsheetId = "1OZCS5NRwwSum9ai3ra4lABtU0UGW-9yLYgZk-aQfxpw";
String range = "Sheet1!A:B"; // Assuming column A for timestamps and column B for response times
String range = "Sheet1!A:C";
// Prepare the values to be written
List<List<Object>> values = Collections.singletonList(Collections.singletonList(responseTime));

Loading…
Cancel
Save