Package-level declarations

Pure kotlin data classes for Configuration / setting API

Types

Link copied to clipboard

Enumeration of config family

Link copied to clipboard
data class PMCfgApk(val apkName: String? = null, val apkVersion: String? = null, val groupId: String? = null, val artifactId: String? = null, val version: String? = null, val libVersions: List<PMCfgKVPair>? = null, val mapVersions: List<PMCfgKVPair>? = null, val features: List<PMCfgFeature>? = null, val deviceDesc: List<PMCfgKVPair>? = null)

Application identification and libraries/maps version

Link copied to clipboard
data class PMCfgChangeOption(val optionId: String, val valueBool: Boolean = false, val valueString: String? = null, val valueInt: Int = 0, val valueSet: List<String>? = null)

Request to change application configuration

Link copied to clipboard
data class PMCfgChangeVehicle(val vehicleId: String, val optionId: String, val valueBool: Boolean = false, val valueString: String? = null, val valueInt: Int = 0, val valueSet: List<String>? = null)

Request to change application configuration

Link copied to clipboard
data class PMCfgDefinition(val cfgType: PMCfgType, val id: String, val family: PMCfgFamily, val featureName: String? = null, val featureValue: String? = null, val group: String, val name: String, val description: String, val implementation: String? = null, val confidential: Boolean = false, val textTrue: String? = null, val textFalse: String? = null, val intMin: Int = 0, val intMax: Int = 0, val enumValues: List<PMCfgEnumValue>? = null, val defaultBool: Boolean = false, val defaultInt: Int = 0, val defaultString: String? = null, val defaultSet: List<String>? = null, val measurementSystem: PMCfgMeasurementSystem, val guiOrder: String? = null)

definition of one configuration option

Link copied to clipboard
data class PMCfgDefs(val cfgDefs: List<PMCfgDefinition>? = null, val vehicleDefs: List<PMCfgDefinition>? = null, val vehicleVariants: List<PMCfgVehicleVariant>? = null)

Represents list of configuration option definitions

Link copied to clipboard
data class PMCfgEnumValue(val id: String, val name: String, val description: String)

One item of enumeration

Link copied to clipboard

Enumeration of config family

Link copied to clipboard
data class PMCfgFeature(val id: String, val name: String? = null, val description: String? = null, val valid: Boolean = false, val validFrom: Int = 0, val validTo: Int = 0)
Link copied to clipboard
data class PMCfgKVPair(val key: String? = null, val value: String? = null)
Link copied to clipboard

Enumeration of possible CFG variants ( based on https://developer.android.com/reference/android/icu/util/LocaleData.MeasurementSystem)

Link copied to clipboard
data class PMCfgMsg(val result: PMCfgResult, val text: String? = null)

Message to be shown

Link copied to clipboard
data class PMCfgOption(val id: String, val cfgType: PMCfgType, val definition: PMCfgDefinition? = null, val valueBool: Boolean = false, val valueString: String? = null, val valueInt: Int = 0, val valueSet: List<String>? = null)

One configuration option

Link copied to clipboard
data class PMCfgOptions(val options: List<PMCfgOption>? = null, val vehicles: List<PMCfgVehicle>? = null, val selectedVehicle: String? = null)

Represents list of stored configuration options

Link copied to clipboard
data class PMCfgRequest(val correlationId: String? = null, val action: PMCfgAction, val changeCfg: PMCfgChangeOption? = null, val changeVehicle: PMCfgChangeVehicle? = null)

Request message for configuration interface

Link copied to clipboard
data class PMCfgResponse(val correlationId: String? = null, val action: PMCfgAction, val defs: PMCfgDefs? = null, val opts: PMCfgOptions? = null, val apkInfo: PMCfgApk? = null, val msg: PMCfgMsg? = null)

Response message for configuration interface

Link copied to clipboard

Importance level of message

Link copied to clipboard

Enumeration of configuration types

Link copied to clipboard
data class PMCfgVehicle(val id: String, val options: List<PMCfgOption>? = null)

One vehicle profile

Link copied to clipboard
data class PMCfgVehicleVariant(val variantId: String? = null, val measurementSystem: PMCfgMeasurementSystem, val variantDefs: List<PMCfgDefinition>? = null)

Represents one vehicle definition variant used on UI for user to choose from preddefined variants