com.yandex.div.dsl.model.DivCornersRadius.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 DivCornersRadius internal constructor(
@JsonIgnore val bottomLeft: Property?,
@JsonIgnore val bottomRight: Property?,
@JsonIgnore val topLeft: Property?,
@JsonIgnore val topRight: Property?,
) {
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"bottom-left" to bottomLeft,
"bottom-right" to bottomRight,
"top-left" to topLeft,
"top-right" to topRight,
)
}
}
fun TemplateContext.divCornersRadius(): LiteralProperty {
return value(DivCornersRadius(
bottomLeft = null,
bottomRight = null,
topLeft = null,
topRight = null,
))
}
fun TemplateContext.divCornersRadius(
bottomLeft: Property? = null,
bottomRight: Property? = null,
topLeft: Property? = null,
topRight: Property? = null,
): LiteralProperty {
return value(DivCornersRadius(
bottomLeft = bottomLeft,
bottomRight = bottomRight,
topLeft = topLeft,
topRight = topRight,
))
}
fun TemplateContext.divCornersRadius(
bottomLeft: Int? = null,
bottomRight: Int? = null,
topLeft: Int? = null,
topRight: Int? = null,
): LiteralProperty {
return value(DivCornersRadius(
bottomLeft = optionalValue(bottomLeft),
bottomRight = optionalValue(bottomRight),
topLeft = optionalValue(topLeft),
topRight = optionalValue(topRight),
))
}
fun CardContext.divCornersRadius(): DivCornersRadius {
return DivCornersRadius(
bottomLeft = null,
bottomRight = null,
topLeft = null,
topRight = null,
)
}
fun CardContext.divCornersRadius(
bottomLeft: ValueProperty? = null,
bottomRight: ValueProperty? = null,
topLeft: ValueProperty? = null,
topRight: ValueProperty? = null,
): DivCornersRadius {
return DivCornersRadius(
bottomLeft = bottomLeft,
bottomRight = bottomRight,
topLeft = topLeft,
topRight = topRight,
)
}
fun CardContext.divCornersRadius(
bottomLeft: Int? = null,
bottomRight: Int? = null,
topLeft: Int? = null,
topRight: Int? = null,
): DivCornersRadius {
return DivCornersRadius(
bottomLeft = optionalValue(bottomLeft),
bottomRight = optionalValue(bottomRight),
topLeft = optionalValue(topLeft),
topRight = optionalValue(topRight),
)
}