Package com.orange.webcom.dessert

Exposes classes and functions relative to serialization/deserialization of data to/from the Webcom back end.

Types

Link copied to clipboard
annotation class DatasyncKeyToProperty(val value: String)

Annotation that defines a specific key for deserializing a JSON property to a POJO class attribute.

Link copied to clipboard
annotation class IgnoreNullValues

Annotation that prevents a POJO class attribute from being serialized when it is null.
This annotation is intended to POJO classes only!**

Link copied to clipboard
class ISO8601Date(date: Long) : Date

A Date subclass that is serialized into an ISO8601 string within the tree-like data stored within the Webcom Datasync service.

Link copied to clipboard
annotation class PropertyToDatasyncKey(val value: String)

Annotation that defines a specific key for serializing a JSON property from a POJO class attribute.

Link copied to clipboard
class TimeStampDate(date: Long) : Date

A Date subclass that is serialized into an integer timestamp (milliseconds since Unix Epoch) within the tree-like data stored within the Webcom Datasync service.

Link copied to clipboard
interface TreeLikeData

Represents the value of a tree node.

Functions

Link copied to clipboard
inline fun <T : Any> TreeLikeData.asA(): T

Shortcut to the TreeLikeData.asA method.

Link copied to clipboard
inline fun <T : Any> TreeLikeData.asListOf(): List<T>

Shortcut to the TreeLikeData.asListOf method.

Link copied to clipboard
inline fun <T : Any> TreeLikeData.asMapOf(): Map<String, T>

Shortcut to the TreeLikeData.asMapOf method.