All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yandex.div.dsl.model.DivDownloadCallbacks.kt Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 30.19.0
Show newest version
// 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),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy