com.yandex.div.dsl.model.DivDownloadCallbacks.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 DivDownloadCallbacks internal constructor(
@JsonIgnore val onFailActions: Property>?,
@JsonIgnore val onSuccessActions: Property>?,
) {
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"on_fail_actions" to onFailActions,
"on_success_actions" to onSuccessActions,
)
}
}
fun TemplateContext.divDownloadCallbacks(): LiteralProperty {
return value(DivDownloadCallbacks(
onFailActions = null,
onSuccessActions = null,
))
}
fun TemplateContext.divDownloadCallbacks(
onFailActions: Property>? = null,
onSuccessActions: Property>? = null,
): LiteralProperty {
return value(DivDownloadCallbacks(
onFailActions = onFailActions,
onSuccessActions = onSuccessActions,
))
}
fun TemplateContext.divDownloadCallbacks(
onFailActions: List? = null,
onSuccessActions: List? = null,
): LiteralProperty {
return value(DivDownloadCallbacks(
onFailActions = optionalValue(onFailActions),
onSuccessActions = optionalValue(onSuccessActions),
))
}
fun CardContext.divDownloadCallbacks(): DivDownloadCallbacks {
return DivDownloadCallbacks(
onFailActions = null,
onSuccessActions = null,
)
}
fun CardContext.divDownloadCallbacks(
onFailActions: ValueProperty>? = null,
onSuccessActions: ValueProperty>? = null,
): DivDownloadCallbacks {
return DivDownloadCallbacks(
onFailActions = onFailActions,
onSuccessActions = onSuccessActions,
)
}
fun CardContext.divDownloadCallbacks(
onFailActions: List? = null,
onSuccessActions: List? = null,
): DivDownloadCallbacks {
return DivDownloadCallbacks(
onFailActions = optionalValue(onFailActions),
onSuccessActions = optionalValue(onSuccessActions),
)
}