TSCollection

@Serializable
data class TSCollection(val collectionId: String = UUID.randomUUID().toString(), val observationTime: Date = now(), val sensorTag: String, val timedOut: Boolean = false, val observation: TSObservation)

A single observation collected by the Trust Signals SDK.

Constructors

Link copied to clipboard
constructor(collectionId: String = UUID.randomUUID().toString(), observationTime: Date = now(), sensorTag: String, timedOut: Boolean = false, observation: TSObservation)

Properties

Link copied to clipboard

Unique identifier for this collection.

Link copied to clipboard

The collected sensor signals.

Link copied to clipboard
@Serializable(with = DateRfc3339Serializer::class )
val observationTime: Date

When the observation was recorded (RFC 3339 on the wire).

Link copied to clipboard

Tag identifying the sensor source (e.g. "android").

Link copied to clipboard

true when at least one long-running collector (location, Wi-Fi scan, BLE scan, nearby devices, BLE peripherals) was still pending when the collection deadline fired. Collectors that completed (including those denied permission) do not contribute. When every long-running collector timed out, TSCollectionTimedOutException is thrown instead of returning a collection.