com.yandex.div.dsl.model.DivBorder.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 DivBorder internal constructor(
@JsonIgnore val cornerRadius: Property?,
@JsonIgnore val cornersRadius: Property?,
@JsonIgnore val hasShadow: Property?,
@JsonIgnore val shadow: Property?,
@JsonIgnore val stroke: Property?,
) {
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"corner_radius" to cornerRadius,
"corners_radius" to cornersRadius,
"has_shadow" to hasShadow,
"shadow" to shadow,
"stroke" to stroke,
)
}
}
fun TemplateContext.divBorder(): LiteralProperty {
return value(DivBorder(
cornerRadius = null,
cornersRadius = null,
hasShadow = null,
shadow = null,
stroke = null,
))
}
fun TemplateContext.divBorder(
cornerRadius: Property? = null,
cornersRadius: Property? = null,
hasShadow: Property? = null,
shadow: Property? = null,
stroke: Property? = null,
): LiteralProperty {
return value(DivBorder(
cornerRadius = cornerRadius,
cornersRadius = cornersRadius,
hasShadow = hasShadow,
shadow = shadow,
stroke = stroke,
))
}
fun TemplateContext.divBorder(
cornerRadius: Int? = null,
cornersRadius: DivCornersRadius? = null,
hasShadow: BoolInt? = null,
shadow: DivShadow? = null,
stroke: DivStroke? = null,
): LiteralProperty {
return value(DivBorder(
cornerRadius = optionalValue(cornerRadius),
cornersRadius = optionalValue(cornersRadius),
hasShadow = optionalValue(hasShadow),
shadow = optionalValue(shadow),
stroke = optionalValue(stroke),
))
}
fun CardContext.divBorder(): DivBorder {
return DivBorder(
cornerRadius = null,
cornersRadius = null,
hasShadow = null,
shadow = null,
stroke = null,
)
}
fun CardContext.divBorder(
cornerRadius: ValueProperty? = null,
cornersRadius: ValueProperty? = null,
hasShadow: ValueProperty? = null,
shadow: ValueProperty? = null,
stroke: ValueProperty? = null,
): DivBorder {
return DivBorder(
cornerRadius = cornerRadius,
cornersRadius = cornersRadius,
hasShadow = hasShadow,
shadow = shadow,
stroke = stroke,
)
}
fun CardContext.divBorder(
cornerRadius: Int? = null,
cornersRadius: DivCornersRadius? = null,
hasShadow: BoolInt? = null,
shadow: DivShadow? = null,
stroke: DivStroke? = null,
): DivBorder {
return DivBorder(
cornerRadius = optionalValue(cornerRadius),
cornersRadius = optionalValue(cornersRadius),
hasShadow = optionalValue(hasShadow),
shadow = optionalValue(shadow),
stroke = optionalValue(stroke),
)
}