DataStructure

open class DataStructure<T> @JvmOverloads constructor(var data: T? = null, var error: NRError? = null)

Holds the outcome of an operation: either data on success or error on failure.

Type Parameters

T

The type of the data.

Inheritors

Constructors

Link copied to clipboard
constructor(data: T? = null, error: NRError? = null)

Properties

Link copied to clipboard
var data: T?

The resulting data, or null if the operation failed or produced no data.

Link copied to clipboard

The error that occurred, or null if the operation succeeded.