Package com.kynetics.uf.android.api

Types

Link copied to clipboard
enum AggregationPolicy : Enum<AggregationPolicy>

The aggregation policy of targetAttributes

Link copied to clipboard
enum ApiCommunicationVersion : Enum<ApiCommunicationVersion>

Enum class that represents all supported api communication versions.

Link copied to clipboard
sealed class Communication

Class that maps all messages that are exchanged with the com.kynetics.uf.android.UpdateFactoryService

Link copied to clipboard
data class TargetAttributesWithPolicy(val attributes: Map<String, String>, val policy: AggregationPolicy = AggregationPolicy.REPLACE)

A Map of target attributes with an aggregation policy

Link copied to clipboard
object UFServiceCommunicationConstants

This class contains all communication constants

Link copied to clipboard
data class UFServiceConfiguration(    val tenant: String,     val controllerId: String,     val retryDelay: Long,     val url: String,     val targetToken: String,     val gatewayToken: String,     isApiMode: Boolean,     isEnable: Boolean,     val isUpdateFactoryServe: Boolean,     val targetAttributes: Map<String, String>) : Serializable

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

Link copied to clipboard
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

Link copied to clipboard
object UFServiceInfo

Utility constants related to the Update Factory Service

Link copied to clipboard
class UFServiceMessage(    val eventName: String,     val oldState: String,     val currentState: String,     val suspend: UFServiceMessage.Suspend) : Serializable

This class represents the service state (API version 0.1)

Functions

Link copied to clipboard
fun Message.toOutV1Message(): Communication.V1.Out

Transform an instance of Message to Communication.V1.Out