public class IBeaconsRequestExecutor extends PaginatedRequestExecutor<Devices>
DevicesApi
. Use this class if you want to fetch
iBeacon devices through fluent API in chained fashion, for example:
IKontaktCloud kontaktCloud = KontaktCloud.newInstance();
Devices iBeacons = kontaktCloud.devices().iBeacons()
.withIds(iBeaconIDs)
.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 |
---|
IBeaconsRequestExecutor(DevicesService devicesService)
Constructs request executor initialized with corresponding service class.
|
Modifier and Type | Method and Description |
---|---|
IBeaconsRequestExecutor |
access(Access access)
Specifies access parameter.
|
IBeaconsRequestExecutor |
eTag(java.lang.String eTag)
Specifies HTTP entity tag purposed for caching REST API calls.
|
IBeaconsRequestExecutor |
filter(java.lang.String query)
Specifies the filter for requested data.
|
IBeaconsRequestExecutor |
managerIds(java.util.List<java.util.UUID> managerIds)
Specifies managers for whom devices are assigned to.
|
IBeaconsRequestExecutor |
managerIds(java.util.UUID... managerIds)
Specifies managers for whom devices are assigned to.
|
IBeaconsRequestExecutor |
maxResult(int maxResult)
Specifies the maximum size of response data collection.
|
IBeaconsRequestExecutor |
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.
|
IBeaconsRequestExecutor |
startIndex(int startIndex)
Specifies the start index of requested data.
|
IBeaconsRequestExecutor |
withIds(IBeaconId... iBeaconIDs)
Specifies iBeacon unique IDs.
|
IBeaconsRequestExecutor |
withIds(java.util.List<IBeaconId> iBeaconIDs)
Specifies iBeacon unique IDs.
|
execute, execute
protected Access access
protected DeviceProfile profile
protected DeviceType type
protected java.util.UUID[] managerIds
public IBeaconsRequestExecutor(DevicesService devicesService)
devicesService
- the devices API service.public IBeaconsRequestExecutor withIds(IBeaconId... iBeaconIDs)
iBeaconIDs
- iBeacon unique identifiers.public IBeaconsRequestExecutor withIds(java.util.List<IBeaconId> iBeaconIDs)
iBeaconIDs
- iBeacon unique identifiers.protected retrofit2.Call<Devices> prepareCall()
prepareCall
in class RequestExecutor<Devices>
public IBeaconsRequestExecutor startIndex(int startIndex)
startIndex
in class PaginatedRequestExecutor<Devices>
startIndex
- the start index.public IBeaconsRequestExecutor maxResult(int maxResult)
maxResult
in class PaginatedRequestExecutor<Devices>
maxResult
- the maximum response size value.public IBeaconsRequestExecutor filter(java.lang.String query)
filter
in class PaginatedRequestExecutor<Devices>
query
- the query filter.public IBeaconsRequestExecutor access(Access access)
access
- the access.public IBeaconsRequestExecutor managerIds(java.util.UUID... managerIds)
managerIds
- manager unique identifiers.public IBeaconsRequestExecutor managerIds(java.util.List<java.util.UUID> managerIds)
managerIds
- manager unique identifiers.public IBeaconsRequestExecutor 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 IBeaconsRequestExecutor 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()