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

com.yandex.div.dsl.model.DivExtension.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 DivExtension internal constructor(
    @JsonIgnore val id: Property?,
    @JsonIgnore val params: Property>?,
) {

    @JsonAnyGetter
    internal fun properties(): Map {
        return propertyMapOf(
            "id" to id,
            "params" to params,
        )
    }
}

fun  TemplateContext.divExtension(): LiteralProperty {
    return value(DivExtension(
        id = null,
        params = null,
    ))
}

fun  TemplateContext.divExtension(
    id: Property? = null,
    params: Property>? = null,
): LiteralProperty {
    return value(DivExtension(
        id = id,
        params = params,
    ))
}

fun  TemplateContext.divExtension(
    id: String? = null,
    params: Map? = null,
): LiteralProperty {
    return value(DivExtension(
        id = optionalValue(id),
        params = optionalValue(params),
    ))
}

fun CardContext.divExtension(
    id: ValueProperty,
    params: ValueProperty>? = null,
): DivExtension {
    return DivExtension(
        id = id,
        params = params,
    )
}

fun CardContext.divExtension(
    id: String,
    params: Map? = null,
): DivExtension {
    return DivExtension(
        id = value(id),
        params = optionalValue(params),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy