Webcom Android SDK Public API Reference / com.orange.webcom.sdkv2.datasync / DataEvent

DataEvent

sealed class DataEvent

Represents a notification received through the Firebase Cloud Messaging service from the Webcom back end in response to a Subscription previously set up using one of the DatasyncNode.subscribeThroughNotifications methods.

Instances of this class must be build using the build factory.

Types

Change

sealed class Change : DataEvent

Notification that some data has changed.

Revocation

class Revocation : DataEvent

Notification that a subscription has been revoked by the Webcom back end.

Properties

application

val application: String

Name (or identifier) of the WebcomApplication concerned by the received notification.

path

val path: String

/-separated path of the DatasyncNode concerned by the received notification.

Companion Object Functions

build

fun build(msgData: Map<String, String>): DataEvent

Builds a DataEvent instance from the data conveyed by a received remote Firebase Message.

Inheritors

Change

sealed class Change : DataEvent

Notification that some data has changed.

Revocation

class Revocation : DataEvent

Notification that a subscription has been revoked by the Webcom back end.