PMCfgOption

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

Constructors

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

Properties

Link copied to clipboard

type of configuration option, should be the same as definition.cfgType
Default value is PMCfgType.TypeBool

Link copied to clipboard

option definition ( could be empty in stored values)

Link copied to clipboard
val id: String

id of configuration option, should be the same as definition.id

Link copied to clipboard
val valueBool: Boolean = false

bool value

Link copied to clipboard
val valueInt: Int = 0

int value

Link copied to clipboard
val valueSet: List<String>? = null

set or list of enums values, depends on cfgType

Link copied to clipboard
val valueString: String? = null

string or enum value