public interface OnChannelEventListener
Modifier and Type | Method and Description |
---|---|
void |
onError(java.lang.Integer statusCode,
java.lang.String message)
Fired when an error was detected by the SDK
|
void |
onObjectAdded(TelepatBaseModel toAdd)
Fired when an object was added to the channel (by a 3rd party device, locally initiated adds
are fired through
onObjectCreateSuccess |
void |
onObjectCreateSuccess(TelepatBaseModel toAdd)
Fired when an object was created successfully.
|
void |
onObjectModified(TelepatBaseModel target,
java.lang.String propertyName,
java.lang.String newValue)
Fired when an object was updated
|
void |
onObjectRemoved(TelepatBaseModel toRemove,
int objectId)
Fired when an object was deleted
|
void onObjectAdded(TelepatBaseModel toAdd)
onObjectCreateSuccess
toAdd
- void onObjectCreateSuccess(TelepatBaseModel toAdd)
toAdd
- void onObjectRemoved(TelepatBaseModel toRemove, int objectId)
toRemove
- the deleted object. This value is null if the object isn't stored locallyobjectId
- the ID of the deleted objectvoid onObjectModified(TelepatBaseModel target, java.lang.String propertyName, java.lang.String newValue)
target
- the updated objectpropertyName
- the updated property namenewValue
- the new value of the updated propertyvoid onError(java.lang.Integer statusCode, java.lang.String message)
statusCode
- the code of the errormessage
- a message associated with the error