com.yandex.div.dsl.model.DivAccessibility.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-json-builder Show documentation
Show all versions of kotlin-json-builder Show documentation
DivKit is an open source Server-Driven UI (SDUI) framework. SDUI is a an emerging technique that leverage the server to build the user interfaces of their mobile app.
// Generated code. Do not modify.
package com.yandex.div.dsl.model
import java.net.URI
import com.fasterxml.jackson.annotation.*
import com.yandex.div.dsl.*
import com.yandex.div.dsl.context.*
import com.yandex.div.dsl.type.*
import com.yandex.div.dsl.util.*
class DivAccessibility internal constructor(
@JsonIgnore val description: Property?,
@JsonIgnore val hint: Property?,
@JsonIgnore val mode: Property?,
@JsonIgnore val muteAfterAction: Property?,
@JsonIgnore val stateDescription: Property?,
@JsonIgnore val type: Property?,
) {
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"description" to description,
"hint" to hint,
"mode" to mode,
"mute_after_action" to muteAfterAction,
"state_description" to stateDescription,
"type" to type,
)
}
enum class Mode(@JsonValue val value: String) {
DEFAULT("default"),
MERGE("merge"),
EXCLUDE("exclude"),
}
enum class Type(@JsonValue val value: String) {
NONE("none"),
BUTTON("button"),
IMAGE("image"),
TEXT("text"),
EDIT_TEXT("edit_text"),
HEADER("header"),
TAB_BAR("tab_bar"),
}
}
fun TemplateContext.divAccessibility(): LiteralProperty {
return value(DivAccessibility(
description = null,
hint = null,
mode = null,
muteAfterAction = null,
stateDescription = null,
type = null,
))
}
fun TemplateContext.divAccessibility(
description: Property? = null,
hint: Property? = null,
mode: Property? = null,
muteAfterAction: Property? = null,
stateDescription: Property? = null,
type: Property? = null,
): LiteralProperty {
return value(DivAccessibility(
description = description,
hint = hint,
mode = mode,
muteAfterAction = muteAfterAction,
stateDescription = stateDescription,
type = type,
))
}
fun TemplateContext.divAccessibility(
description: String? = null,
hint: String? = null,
mode: DivAccessibility.Mode? = null,
muteAfterAction: BoolInt? = null,
stateDescription: String? = null,
type: DivAccessibility.Type? = null,
): LiteralProperty {
return value(DivAccessibility(
description = optionalValue(description),
hint = optionalValue(hint),
mode = optionalValue(mode),
muteAfterAction = optionalValue(muteAfterAction),
stateDescription = optionalValue(stateDescription),
type = optionalValue(type),
))
}
fun CardContext.divAccessibility(): DivAccessibility {
return DivAccessibility(
description = null,
hint = null,
mode = null,
muteAfterAction = null,
stateDescription = null,
type = null,
)
}
fun CardContext.divAccessibility(
description: ValueProperty? = null,
hint: ValueProperty? = null,
mode: ValueProperty? = null,
muteAfterAction: ValueProperty? = null,
stateDescription: ValueProperty? = null,
type: ValueProperty? = null,
): DivAccessibility {
return DivAccessibility(
description = description,
hint = hint,
mode = mode,
muteAfterAction = muteAfterAction,
stateDescription = stateDescription,
type = type,
)
}
fun CardContext.divAccessibility(
description: String? = null,
hint: String? = null,
mode: DivAccessibility.Mode? = null,
muteAfterAction: BoolInt? = null,
stateDescription: String? = null,
type: DivAccessibility.Type? = null,
): DivAccessibility {
return DivAccessibility(
description = optionalValue(description),
hint = optionalValue(hint),
mode = optionalValue(mode),
muteAfterAction = optionalValue(muteAfterAction),
stateDescription = optionalValue(stateDescription),
type = optionalValue(type),
)
}