diff --git a/src/main/java/com/voronsky/unifi4j/Unifi.java b/src/main/java/com/voronsky/unifi4j/Unifi.java index 12a3def..4a308e5 100644 --- a/src/main/java/com/voronsky/unifi4j/Unifi.java +++ b/src/main/java/com/voronsky/unifi4j/Unifi.java @@ -44,7 +44,7 @@ public class Unifi { /** * Returns a list of only the hardware names associated with the account * @return A list of hardware names - * @throws Exception + * @throws Exception For failed API Calls or JSON parsing */ public List getHardwareList() throws Exception{ List hardwares = new ArrayList<>(); @@ -65,6 +65,11 @@ public class Unifi { return hardwares; } + /** + * Returns a list of Devices and their information + * @return A list of device objects containing device information + * @throws Exception For failed API calls or JSON parsing + */ public List getDevices() throws Exception{ List devices = new ArrayList<>(); ResponseEntity json = this.restClient.get().uri("/devices").retrieve().toEntity(String.class);