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

com.yandex.div.dsl.model.DivData.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 DivData internal constructor(
    @JsonIgnore val logId: Property?,
    @JsonIgnore val states: Property>?,
    @JsonIgnore val transitionAnimationSelector: Property?,
    @JsonIgnore val variableTriggers: Property>?,
    @JsonIgnore val variables: Property>?,
) : Root {

    @JsonAnyGetter
    internal fun properties(): Map {
        return propertyMapOf(
            "log_id" to logId,
            "states" to states,
            "transition_animation_selector" to transitionAnimationSelector,
            "variable_triggers" to variableTriggers,
            "variables" to variables,
        )
    }

    class State internal constructor(
        @JsonIgnore val div: Property
?, @JsonIgnore val stateId: Property?, ) { @JsonAnyGetter internal fun properties(): Map { return propertyMapOf( "div" to div, "state_id" to stateId, ) } } } fun CardContext.divData( logId: ValueProperty, states: ValueProperty>, transitionAnimationSelector: ValueProperty? = null, variableTriggers: ValueProperty>? = null, variables: ValueProperty>? = null, ): DivData { return DivData( logId = logId, states = states, transitionAnimationSelector = transitionAnimationSelector, variableTriggers = variableTriggers, variables = variables, ) } fun CardContext.divData( logId: String, states: List, transitionAnimationSelector: DivTransitionSelector? = null, variableTriggers: List? = null, variables: List? = null, ): DivData { return DivData( logId = value(logId), states = value(states), transitionAnimationSelector = optionalValue(transitionAnimationSelector), variableTriggers = optionalValue(variableTriggers), variables = optionalValue(variables), ) } fun CardContext.state( div: ValueProperty
, stateId: ValueProperty, ): DivData.State { return DivData.State( div = div, stateId = stateId, ) } fun CardContext.state( div: Div, stateId: Int, ): DivData.State { return DivData.State( div = value(div), stateId = value(stateId), ) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy