public abstract static class SyncableKontaktDeviceConnection.SyncWriteListener
extends java.lang.Object
Abstract class used as listener to notify about updating device and syncing with REST API
Current implementation does nothing
Modifier and Type | Field and Description |
---|---|
static int |
SYNC_NOT_IMPLEMENTED_YET
The constant SYNC_NOT_IMPLEMENTED_YET.
|
Constructor and Description |
---|
SyncWriteListener() |
Modifier and Type | Method and Description |
---|---|
void |
onSuccess()
Invoked when beacon characteristics manipulation was success and invoking REST API succeed
|
void |
onSyncFailed(ClientException e)
Invoked when beacon non secure characteristics manipulation was success, but invoking REST API failed
|
void |
onSyncFailed(ClientException e,
SecureSingleConfig response)
Invoked when beacon beacon secure characteristics manipulation was success, but invoking REST API failed
|
void |
onWriteFailed()
Deprecated.
use
onWriteFailed(WriteListener.Cause) instead |
void |
onWriteFailed(WriteListener.Cause cause)
Invoked when beacon characteristics manipulation failed.
|
public static final int SYNC_NOT_IMPLEMENTED_YET
@Deprecated public void onWriteFailed()
onWriteFailed(WriteListener.Cause)
insteadIf so no attempt will be done to update REST API
public void onWriteFailed(WriteListener.Cause cause)
If so no attempt will be done to update REST API
public void onSyncFailed(ClientException e)
Invoked when beacon non secure characteristics manipulation was success, but invoking REST API failed
No attempts to restore beacon old characteristics will be done
e
- the epublic void onSyncFailed(ClientException e, SecureSingleConfig response)
Invoked when beacon beacon secure characteristics manipulation was success, but invoking REST API failed
No attempts to restore beacon old characteristics will be done
e
- the eresponse
- encrypted response from beaconpublic void onSuccess()
Invoked when beacon characteristics manipulation was success and invoking REST API succeed