Class SyncStatus
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.proactiveconnect.SyncStatus
- All Implemented Interfaces:
Jsonable
Provides info on list changes compared to the latest sync.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SyncStatusCreates an instance of this class from a JSON payload.Whether one or more list items were added, removed and/or modified since last sync.Details on the sync status.getDirty()Whether the list content or metadata were modified since last sync.Whether the list definition has been modified since last sync.getValue()Synchronization state of the list.Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
SyncStatus
protected SyncStatus()
-
-
Method Details
-
getValue
Synchronization state of the list.- Returns:
- The sync status enum.
-
getDetails
Details on the sync status.- Returns:
- Sync status details as a string.
-
getMetadataModified
Whether the list definition has been modified since last sync.- Returns:
trueif the list metadata was modified since last sync.
-
getDataModified
Whether one or more list items were added, removed and/or modified since last sync.- Returns:
trueif the list data was modified since last sync.
-
getDirty
Whether the list content or metadata were modified since last sync.- Returns:
trueif the list was modified since last sync.
-
fromJson
Creates an instance of this class from a JSON payload.- Parameters:
json- The JSON string to parse.- Returns:
- An instance of this class with the fields populated, if present.
-