UFServiceConfigurationV2

data class UFServiceConfigurationV2(    val tenant: String,     val controllerId: String,     val url: String,     val targetToken: String,     val gatewayToken: String,     val isApiMode: Boolean,     val isEnable: Boolean,     val isUpdateFactoryServe: Boolean,     val targetAttributes: Map<String, String> = emptyMap(),     val timeWindows: UFServiceConfigurationV2.TimeWindows = TimeWindows())

This class represent the com.kynetics.uf.android.UpdateFactoryService configuration

Constructors

Link copied to clipboard
fun UFServiceConfigurationV2(    tenant: String,     controllerId: String,     url: String,     targetToken: String,     gatewayToken: String,     isApiMode: Boolean,     isEnable: Boolean,     isUpdateFactoryServe: Boolean,     targetAttributes: Map<String, String> = emptyMap(),     timeWindows: UFServiceConfigurationV2.TimeWindows = TimeWindows())

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class TimeWindows(val cronExpression: String = ALWAYS, val duration: Long = DEFAULT_WINDOW_DURATION)

Class to configure the time windows behaviour. It defines when a forced update can be applied based on a schedule defined as cron expression (QUARTZ) and a duration in seconds.

Functions

Link copied to clipboard
fun toJson(): String

Json serialization

Properties

Link copied to clipboard
val controllerId: String

Id of the controller

Link copied to clipboard
val gatewayToken: String

Gateway token

Link copied to clipboard
val isApiMode: Boolean

true to handle authorization via service messages, false to use service built-in dialog

Link copied to clipboard
val isEnable: Boolean

true to enable the service, false otherwise

Link copied to clipboard
val isUpdateFactoryServe: Boolean

true when the server is Update Factory, false when the server is hawkBit

Link copied to clipboard
val isValid: Boolean

True if the configuration is valid

Link copied to clipboard
val targetAttributes: Map<String, String>

target metadata sent to the server

Link copied to clipboard
val targetToken: String

Target token

Link copied to clipboard
val tenant: String

The tenant

Link copied to clipboard
val timeWindows: UFServiceConfigurationV2.TimeWindows

configuration parameters for forced updates with time windows

Link copied to clipboard
val url: String

The Update Server URL