public class EddystonesRequestExecutor extends PaginatedRequestExecutor<Devices>
DevicesApi
. Use this class if you want to get
Eddystone devices through fluent API in chained fashion, for example:
IKontaktCloud kontaktCloud = KontaktCloud.newInstance();
Devices eddystones = kontaktCloud.devices().eddystones()
.withIds(eddystoneUIDs)
.maxResult(10)
.execute();
Modifier and Type | Field and Description |
---|---|
protected Access |
access |
protected java.util.UUID[] |
managerIds |
protected DeviceProfile |
profile |
protected DeviceType |
type |
eTag, maxResult, order, orderBy, query, startIndex
Constructor and Description |
---|
EddystonesRequestExecutor(DevicesService devicesService)
Constructs request executor initialized with corresponding service class.
|
Modifier and Type | Method and Description |
---|---|
EddystonesRequestExecutor |
access(Access access)
Specifies access parameter.
|
EddystonesRequestExecutor |
eTag(java.lang.String eTag)
Specifies HTTP entity tag purposed for caching REST API calls.
|
EddystonesRequestExecutor |
filter(java.lang.String query)
Specifies the filter for requested data.
|
EddystonesRequestExecutor |
managerIds(java.util.List<java.util.UUID> managerIds)
Specifies managers for whom devices are assigned to.
|
EddystonesRequestExecutor |
managerIds(java.util.UUID... managerIds)
Specifies managers for whom devices are assigned to.
|
EddystonesRequestExecutor |
maxResult(int maxResult)
Specifies the maximum size of response data collection.
|
EddystonesRequestExecutor |
orderBy(OrderBy orderBy,
Order order)
Specifies the ordering of response data elements.
|
protected java.util.Map<java.lang.String,java.lang.String> |
params()
Composes the request's query parameters in map.
|
protected retrofit2.Call<Devices> |
prepareCall()
Prepares a request to execute.
|
EddystonesRequestExecutor |
startIndex(int startIndex)
Specifies the start index of requested data.
|
EddystonesRequestExecutor |
withIds(EddystoneUid... eddystoneUIDs)
Specifies Eddystone unique IDs.
|
EddystonesRequestExecutor |
withIds(java.util.List<EddystoneUid> eddystoneUIDs)
Specifies Eddystone unique IDs.
|
execute, execute
protected Access access
protected DeviceProfile profile
protected DeviceType type
protected java.util.UUID[] managerIds
public EddystonesRequestExecutor(DevicesService devicesService)
devicesService
- the devices API service.public EddystonesRequestExecutor withIds(EddystoneUid... eddystoneUIDs)
eddystoneUIDs
- Eddystone unique identifiers.public EddystonesRequestExecutor withIds(java.util.List<EddystoneUid> eddystoneUIDs)
eddystoneUIDs
- Eddystone unique identifiers.protected retrofit2.Call<Devices> prepareCall()
prepareCall
in class RequestExecutor<Devices>
public EddystonesRequestExecutor startIndex(int startIndex)
startIndex
in class PaginatedRequestExecutor<Devices>
startIndex
- the start index.public EddystonesRequestExecutor maxResult(int maxResult)
maxResult
in class PaginatedRequestExecutor<Devices>
maxResult
- the maximum response size value.public EddystonesRequestExecutor filter(java.lang.String query)
filter
in class PaginatedRequestExecutor<Devices>
query
- the query filter.public EddystonesRequestExecutor access(Access access)
access
- the access.public EddystonesRequestExecutor managerIds(java.util.UUID... managerIds)
managerIds
- manager unique identifiers.public EddystonesRequestExecutor managerIds(java.util.List<java.util.UUID> managerIds)
managerIds
- manager unique identifiers.public EddystonesRequestExecutor orderBy(OrderBy orderBy, Order order)
orderBy
in class PaginatedRequestExecutor<Devices>
orderBy
- the field type that specifies the order by column.order
- ascending or descending.public EddystonesRequestExecutor eTag(java.lang.String eTag)
eTag
in class PaginatedRequestExecutor<Devices>
eTag
- the entity tag value.protected java.util.Map<java.lang.String,java.lang.String> params()