public class DeviceService extends Object
Modifier and Type | Field and Description |
---|---|
private Credentials |
credentials |
private Transport |
transport |
private URL |
url |
Constructor and Description |
---|
DeviceService(URL url,
Credentials credentials,
Transport transport)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DeviceOverviewInfo |
getOverview(long id)
Returns overview of device.
|
List<DeviceInfo> |
list(Integer firstResult,
Integer maxResults,
String like)
Returns list of entities.
|
List<DeviceOverviewInfo> |
listOverview(Integer firstResult,
Integer maxResults,
String like)
Returns list of entities.
|
private URL url
private Credentials credentials
private Transport transport
public DeviceService(URL url, Credentials credentials, Transport transport)
url
- specify url of the server (usually https://a.srv4pos.com/api/v{versionNumber})credentials
- specify username and password to connect to or null if you want to connect to public methodstransport
- specify a mecanism to make api calls, see Transport
for more info.public DeviceOverviewInfo getOverview(long id)
id
- identifies entityNotFoundJsonException
- if entity is not foundpublic List<DeviceInfo> list(Integer firstResult, Integer maxResults, String like)
public List<DeviceOverviewInfo> listOverview(Integer firstResult, Integer maxResults, String like)
Copyright © 2016. All rights reserved.