mirror of
https://github.com/Voronsky/unifi4j.git
synced 2025-12-12 16:16:34 -05:00
Added doc string and made a change
This commit is contained in:
@@ -44,7 +44,7 @@ public class Unifi {
|
|||||||
/**
|
/**
|
||||||
* Returns a list of only the hardware names associated with the account
|
* Returns a list of only the hardware names associated with the account
|
||||||
* @return A list of hardware names
|
* @return A list of hardware names
|
||||||
* @throws Exception
|
* @throws Exception For failed API Calls or JSON parsing
|
||||||
*/
|
*/
|
||||||
public List<String> getHardwareList() throws Exception{
|
public List<String> getHardwareList() throws Exception{
|
||||||
List<String> hardwares = new ArrayList<>();
|
List<String> hardwares = new ArrayList<>();
|
||||||
@@ -65,6 +65,11 @@ public class Unifi {
|
|||||||
return hardwares;
|
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<Devices> getDevices() throws Exception{
|
public List<Devices> getDevices() throws Exception{
|
||||||
List<Devices> devices = new ArrayList<>();
|
List<Devices> devices = new ArrayList<>();
|
||||||
ResponseEntity<String> json = this.restClient.get().uri("/devices").retrieve().toEntity(String.class);
|
ResponseEntity<String> json = this.restClient.get().uri("/devices").retrieve().toEntity(String.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user