AppConfig

@Serializable
data class AppConfig(val label: String, val createdOn: String? = null, val modifiedOn: String? = null, val guid: String? = null, val deleted: Boolean? = null, val criteria: Criteria? = null, val clientData: JsonElement? = null, val surveyReferences: List<SurveyReference>? = null, val schemaReferences: List<SchemaReference>? = null, val configReferences: List<ConfigReference>? = null, val fileReferences: List<FileReference>? = null, val configElements: Map<String, JsonElement>? = null, val version: Long? = null, val type: String? = null)

An app configuration object.

Parameters

label
createdOn

The date and time the app config was created.

modifiedOn

The date and time the app config was last modified.

guid
deleted

Has this app config been logically deleted (an admin can restore it)?

criteria
clientData

An arbitrary object that will be serialized and stored as JSON using the GSON serialization mechanisms. In Java this field is an Object; since the type of the object is not known, the rest-client includes a utility method: `` MyCustomObject data = RestUtils.toType( activity.getClientData(), MyCustomObject.class); `` @param surveyReferences @param schemaReferences @param configReferences @param fileReferences @param configElements A map of app config element IDs to the app config element JSON of a specific app config element revision (the revision given in the configReferences map). @param version The optimistic locking version of the app config. This value must be submitted as part of the next update of the model. If it does not match the value on the server, a 409 error (Conflict) will prevent the update from occurring. It can also serve as a key to determine if a local cache of AppConfig needs to be updated. @param type AppConfig

Constructors

Link copied to clipboard
constructor(label: String, createdOn: String? = null, modifiedOn: String? = null, guid: String? = null, deleted: Boolean? = null, criteria: Criteria? = null, clientData: JsonElement? = null, surveyReferences: List<SurveyReference>? = null, schemaReferences: List<SchemaReference>? = null, configReferences: List<ConfigReference>? = null, fileReferences: List<FileReference>? = null, configElements: Map<String, JsonElement>? = null, version: Long? = null, type: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "clientData")
val clientData: JsonElement? = null
Link copied to clipboard
@SerialName(value = "configElements")
val configElements: Map<String, JsonElement>? = null
Link copied to clipboard
@SerialName(value = "configReferences")
val configReferences: List<ConfigReference>? = null
Link copied to clipboard
@SerialName(value = "createdOn")
val createdOn: String? = null
Link copied to clipboard
@SerialName(value = "criteria")
val criteria: Criteria? = null
Link copied to clipboard
@SerialName(value = "deleted")
val deleted: Boolean? = null
Link copied to clipboard
@SerialName(value = "fileReferences")
val fileReferences: List<FileReference>? = null
Link copied to clipboard
@SerialName(value = "guid")
val guid: String? = null
Link copied to clipboard
@SerialName(value = "label")
val label: String
Link copied to clipboard
@SerialName(value = "modifiedOn")
val modifiedOn: String? = null
Link copied to clipboard
@SerialName(value = "schemaReferences")
val schemaReferences: List<SchemaReference>? = null
Link copied to clipboard
@SerialName(value = "surveyReferences")
val surveyReferences: List<SurveyReference>? = null
Link copied to clipboard
@SerialName(value = "type")
val type: String? = null
Link copied to clipboard
@SerialName(value = "version")
val version: Long? = null

Functions

Link copied to clipboard
fun AppConfig.clientDataJson(): <Error class: unknown class>?
Link copied to clipboard
fun AppConfig.configElementJson(identifier: String): <Error class: unknown class>?
Link copied to clipboard
fun AppConfig.mapConfigElements(): Map<String, <Error class: unknown class>>?