ZTActivity

open class ZTActivity(id: String, startedAt: Date, deviceSerial: String)

ZTActivity instance contains data that gathered from zt products and provided by application of user activity

Author

Alexandre Lemoult <a.lemoult@zhortech.com>

Constructors

ZTActivity
Link copied to clipboard
fun ZTActivity(id: String, startedAt: Date, deviceSerial: String)

Functions

addActivityData
Link copied to clipboard
fun addActivityData(timestampMs: Long, data: List<Any?>): ZTActivityData
addSegment
Link copied to clipboard
fun addSegment(segment: ZTSegment): Boolean
toString
Link copied to clipboard
open override fun toString(): String

Properties

activityData
Link copied to clipboard
var activityData: MutableList<ZTActivityData>? = null
attributes
Link copied to clipboard
var attributes: Map<String, Any?>? = null
deviceSerial
Link copied to clipboard
val deviceSerial: String
id
Link copied to clipboard
val id: String
pending
Link copied to clipboard
var pending: Boolean = false
segments
Link copied to clipboard
var segments: MutableList<ZTSegment>
startedAt
Link copied to clipboard
val startedAt: Date
startedOnCloud
Link copied to clipboard
var startedOnCloud: Boolean = false
stoppedAt
Link copied to clipboard
var stoppedAt: Date? = null