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

TransactionResult

class TransactionResult

Represents the result of a transaction run by the DatasyncNode.runTransaction method.

Constructors

<init>

TransactionResult(value: DatasyncValuable, hasCompleted: Boolean)

Represents the result of a transaction run by the DatasyncNode.runTransaction method.

Properties

hasCompleted

val hasCompleted: Boolean

Indicates whether the transaction was completed (true) or aborted (false). Aborted means the transaction function passed to DatasyncNode.runTransaction either returned Abort or has been attempted too many times on the Webcom back end without success.

value

val value: DatasyncValuable

The value actually set to the data node if the transaction was properly completed (i.e. hasCompleted is true). It is meaningless if hasCompleted is false.