Add Traccar device rename method

pull/81/head
shamalka 2 years ago
parent bfd9197c4f
commit a313bd5d35

@ -31,9 +31,9 @@ public interface TraccarManagementService {
/**
* Removes the Traccar device with the specified device ID from the logged in user.
* @param deviceId The ID of the Traccar device to be unlinked from the user.
* @param deviceEnrollmentId The enrollment ID of the device to be removed from Traccar.
*/
void unLinkTraccarDevice(int deviceId);
void unLinkTraccarDevice(int deviceEnrollmentId);
/**
* Removes the device with the specified enrollment ID from Traccar.
@ -41,6 +41,13 @@ public interface TraccarManagementService {
*/
void removeDevice(int deviceEnrollmentId);
/**
* Renames the device with the specified enrollment ID to the given name.
* @param deviceEnrollmentId the enrollment ID of the device to be renamed
* @param name The new name for the device
*/
void renameDevice(int deviceEnrollmentId, String name);
/**
* Updates the location of the provided device with the specified device location.
* @param device The device whose location is to be updated.

Loading…
Cancel
Save