public class KontaktDeviceServiceStore extends java.lang.Object implements GattServiceStore
| Modifier and Type | Class and Description |
|---|---|
static class |
KontaktDeviceServiceStore.StoreType
Type of store
KontaktDeviceServiceStore.StoreType.NORMAL if beacon firmware revision is lower than 4.0
KontaktDeviceServiceStore.StoreType.SECURE if beacon firmware revision is 4.0 and greater
|
| Constructor and Description |
|---|
KontaktDeviceServiceStore(java.util.List<BluetoothGattService> gattServices,
KontaktDeviceServiceStore.StoreType storeType)
Instantiates a new Service store.
|
public KontaktDeviceServiceStore(java.util.List<BluetoothGattService> gattServices,
KontaktDeviceServiceStore.StoreType storeType)
throws RemoteException
gattServices - beacon services listRemoteException - the remote exception thrown if services list does
not match the specification of kontakt.io beaconpublic BluetoothDeviceCharacteristic getFirmwareRevisionCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getFirmwareRevisionCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getHardwareRevisionCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getHardwareRevisionCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getManufacturerNameCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getManufacturerNameCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getDeviceNameCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getDeviceNameCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getPropagatedDeviceNameCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getPropagatedDeviceNameCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getMinorCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getMinorCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getNonConnectableCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getNonConnectableCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getShuffleIntervalCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getShuffleIntervalCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getShuffleKeyCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getShuffleKeyCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getSensorOnCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getSensorOnCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getAccelerometerCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getAccelerometerCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getActiveProfileCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getActiveProfileCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getMajorCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getMajorCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getProximityCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getProximityCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getPowerLevelCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getPowerLevelCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getBatteryLevelCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getBatteryLevelCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getPasswordCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getPasswordCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getMasterPasswordCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getMasterPasswordCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getSetNewPasswordCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getSetNewPasswordCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getAdvertisingIntervalCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getAdvertisingIntervalCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getResetCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getResetCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getBootloaderCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getBootloaderCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getUniqueIdCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getUniqueIdCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getNamespaceIdCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getNamespaceIdCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getInstanceIdCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getInstanceIdCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getUrlCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getUrlCharacteristic in interface GattServiceStoreServiceAbsentExceptionCharacteristicAbsentExceptionpublic BluetoothDeviceCharacteristic getDefaultSettingsCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
getDefaultSettingsCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getSecureLastProcessedRequestTokenCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
Characteristic added in firmware revision 4.0, on lower firmware revision throws exception
getSecureLastProcessedRequestTokenCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getSecureWriteCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
Characteristic added in firmware revision 4.0, on lower firmware revision throws exception
getSecureWriteCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getSecureResponseCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
Characteristic added in firmware revision 4.0, on lower firmware revision throws exception
getSecureResponseCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic BluetoothDeviceCharacteristic getSecureControlPointCharacteristic() throws ServiceAbsentException, CharacteristicAbsentException
Characteristic added in firmware revision 4.0, on lower firmware revision throws exception
getSecureControlPointCharacteristic in interface GattServiceStoreBluetoothDeviceCharacteristic characteristic wrapperServiceAbsentException - if service not foundCharacteristicAbsentException - if characteristic not foundpublic KontaktDeviceServiceStore.StoreType getStoreType()
KontaktDeviceServiceStore.StoreTypepublic boolean contains(KontaktDeviceService serviceModel)
KontaktDeviceService was found during service discoverycontains in interface GattServiceStoreserviceModel - model to findpublic void replace(BluetoothDeviceCharacteristic characteristicWrapper) throws ServiceAbsentException
replace in interface GattServiceStorecharacteristicWrapper - new characteristicServiceAbsentException - if service not foundpublic void clear()
clear in interface GattServiceStorepublic final java.util.Collection<BluetoothDeviceCharacteristic> getReadableCharacteristics()