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

com.yandex.div.dsl.model.DivState.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 DivState internal constructor(
    @JsonIgnore override val accessibility: Property?,
    @JsonIgnore override val alignmentHorizontal: Property?,
    @JsonIgnore override val alignmentVertical: Property?,
    @JsonIgnore override val alpha: Property?,
    @JsonIgnore override val background: Property>?,
    @JsonIgnore override val border: Property?,
    @JsonIgnore override val columnSpan: Property?,
    @JsonIgnore val defaultStateId: Property?,
    @JsonIgnore val divId: Property?,
    @JsonIgnore override val extensions: Property>?,
    @JsonIgnore override val focus: Property?,
    @JsonIgnore override val height: Property?,
    @JsonIgnore override val id: Property?,
    @JsonIgnore override val margins: Property?,
    @JsonIgnore override val paddings: Property?,
    @JsonIgnore override val rowSpan: Property?,
    @JsonIgnore override val selectedActions: Property>?,
    @JsonIgnore val states: Property>?,
    @JsonIgnore override val tooltips: Property>?,
    @JsonIgnore override val transform: Property?,
    @JsonIgnore val transitionAnimationSelector: Property?,
    @JsonIgnore override val transitionChange: Property?,
    @JsonIgnore override val transitionIn: Property?,
    @JsonIgnore override val transitionOut: Property?,
    @JsonIgnore override val transitionTriggers: Property>?,
    @JsonIgnore override val visibility: Property?,
    @JsonIgnore override val visibilityAction: Property?,
    @JsonIgnore override val visibilityActions: Property>?,
    @JsonIgnore override val width: Property?,
) : Div, DivBase {

    @JsonProperty("type") override val type = "state"

    @JsonAnyGetter
    internal fun properties(): Map {
        return propertyMapOf(
            "accessibility" to accessibility,
            "alignment_horizontal" to alignmentHorizontal,
            "alignment_vertical" to alignmentVertical,
            "alpha" to alpha,
            "background" to background,
            "border" to border,
            "column_span" to columnSpan,
            "default_state_id" to defaultStateId,
            "div_id" to divId,
            "extensions" to extensions,
            "focus" to focus,
            "height" to height,
            "id" to id,
            "margins" to margins,
            "paddings" to paddings,
            "row_span" to rowSpan,
            "selected_actions" to selectedActions,
            "states" to states,
            "tooltips" to tooltips,
            "transform" to transform,
            "transition_animation_selector" to transitionAnimationSelector,
            "transition_change" to transitionChange,
            "transition_in" to transitionIn,
            "transition_out" to transitionOut,
            "transition_triggers" to transitionTriggers,
            "visibility" to visibility,
            "visibility_action" to visibilityAction,
            "visibility_actions" to visibilityActions,
            "width" to width,
        )
    }

    class State internal constructor(
        @JsonIgnore val animationIn: Property?,
        @JsonIgnore val animationOut: Property?,
        @JsonIgnore val div: Property
?, @JsonIgnore val stateId: Property?, @JsonIgnore val swipeOutActions: Property>?, ) { @JsonAnyGetter internal fun properties(): Map { return propertyMapOf( "animation_in" to animationIn, "animation_out" to animationOut, "div" to div, "state_id" to stateId, "swipe_out_actions" to swipeOutActions, ) } } } fun TemplateContext.divState(): LiteralProperty { return value(DivState( accessibility = null, alignmentHorizontal = null, alignmentVertical = null, alpha = null, background = null, border = null, columnSpan = null, defaultStateId = null, divId = null, extensions = null, focus = null, height = null, id = null, margins = null, paddings = null, rowSpan = null, selectedActions = null, states = null, tooltips = null, transform = null, transitionAnimationSelector = null, transitionChange = null, transitionIn = null, transitionOut = null, transitionTriggers = null, visibility = null, visibilityAction = null, visibilityActions = null, width = null, )) } fun TemplateContext.divState( states: Property>? = null, accessibility: Property? = null, alignmentHorizontal: Property? = null, alignmentVertical: Property? = null, alpha: Property? = null, background: Property>? = null, border: Property? = null, columnSpan: Property? = null, defaultStateId: Property? = null, divId: Property? = null, extensions: Property>? = null, focus: Property? = null, height: Property? = null, id: Property? = null, margins: Property? = null, paddings: Property? = null, rowSpan: Property? = null, selectedActions: Property>? = null, tooltips: Property>? = null, transform: Property? = null, transitionAnimationSelector: Property? = null, transitionChange: Property? = null, transitionIn: Property? = null, transitionOut: Property? = null, transitionTriggers: Property>? = null, visibility: Property? = null, visibilityAction: Property? = null, visibilityActions: Property>? = null, width: Property? = null, ): LiteralProperty { return value(DivState( accessibility = accessibility, alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, background = background, border = border, columnSpan = columnSpan, defaultStateId = defaultStateId, divId = divId, extensions = extensions, focus = focus, height = height, id = id, margins = margins, paddings = paddings, rowSpan = rowSpan, selectedActions = selectedActions, states = states, tooltips = tooltips, transform = transform, transitionAnimationSelector = transitionAnimationSelector, transitionChange = transitionChange, transitionIn = transitionIn, transitionOut = transitionOut, transitionTriggers = transitionTriggers, visibility = visibility, visibilityAction = visibilityAction, visibilityActions = visibilityActions, width = width, )) } fun TemplateContext.divState( states: List? = null, accessibility: DivAccessibility? = null, alignmentHorizontal: DivAlignmentHorizontal? = null, alignmentVertical: DivAlignmentVertical? = null, alpha: Double? = null, background: List? = null, border: DivBorder? = null, columnSpan: Int? = null, defaultStateId: String? = null, divId: String? = null, extensions: List? = null, focus: DivFocus? = null, height: DivSize? = null, id: String? = null, margins: DivEdgeInsets? = null, paddings: DivEdgeInsets? = null, rowSpan: Int? = null, selectedActions: List? = null, tooltips: List? = null, transform: DivTransform? = null, transitionAnimationSelector: DivTransitionSelector? = null, transitionChange: DivChangeTransition? = null, transitionIn: DivAppearanceTransition? = null, transitionOut: DivAppearanceTransition? = null, transitionTriggers: List? = null, visibility: DivVisibility? = null, visibilityAction: DivVisibilityAction? = null, visibilityActions: List? = null, width: DivSize? = null, ): LiteralProperty { return value(DivState( accessibility = optionalValue(accessibility), alignmentHorizontal = optionalValue(alignmentHorizontal), alignmentVertical = optionalValue(alignmentVertical), alpha = optionalValue(alpha), background = optionalValue(background), border = optionalValue(border), columnSpan = optionalValue(columnSpan), defaultStateId = optionalValue(defaultStateId), divId = optionalValue(divId), extensions = optionalValue(extensions), focus = optionalValue(focus), height = optionalValue(height), id = optionalValue(id), margins = optionalValue(margins), paddings = optionalValue(paddings), rowSpan = optionalValue(rowSpan), selectedActions = optionalValue(selectedActions), states = optionalValue(states), tooltips = optionalValue(tooltips), transform = optionalValue(transform), transitionAnimationSelector = optionalValue(transitionAnimationSelector), transitionChange = optionalValue(transitionChange), transitionIn = optionalValue(transitionIn), transitionOut = optionalValue(transitionOut), transitionTriggers = optionalValue(transitionTriggers), visibility = optionalValue(visibility), visibilityAction = optionalValue(visibilityAction), visibilityActions = optionalValue(visibilityActions), width = optionalValue(width), )) } fun TemplateContext.state(): LiteralProperty { return value(DivState.State( animationIn = null, animationOut = null, div = null, stateId = null, swipeOutActions = null, )) } fun TemplateContext.state( stateId: Property? = null, animationIn: Property? = null, animationOut: Property? = null, div: Property
? = null, swipeOutActions: Property>? = null, ): LiteralProperty { return value(DivState.State( animationIn = animationIn, animationOut = animationOut, div = div, stateId = stateId, swipeOutActions = swipeOutActions, )) } fun TemplateContext.state( stateId: String? = null, animationIn: DivAnimation? = null, animationOut: DivAnimation? = null, div: Div? = null, swipeOutActions: List? = null, ): LiteralProperty { return value(DivState.State( animationIn = optionalValue(animationIn), animationOut = optionalValue(animationOut), div = optionalValue(div), stateId = optionalValue(stateId), swipeOutActions = optionalValue(swipeOutActions), )) } fun CardContext.divState( states: ValueProperty>, accessibility: ValueProperty? = null, alignmentHorizontal: ValueProperty? = null, alignmentVertical: ValueProperty? = null, alpha: ValueProperty? = null, background: ValueProperty>? = null, border: ValueProperty? = null, columnSpan: ValueProperty? = null, defaultStateId: ValueProperty? = null, divId: ValueProperty? = null, extensions: ValueProperty>? = null, focus: ValueProperty? = null, height: ValueProperty? = null, id: ValueProperty? = null, margins: ValueProperty? = null, paddings: ValueProperty? = null, rowSpan: ValueProperty? = null, selectedActions: ValueProperty>? = null, tooltips: ValueProperty>? = null, transform: ValueProperty? = null, transitionAnimationSelector: ValueProperty? = null, transitionChange: ValueProperty? = null, transitionIn: ValueProperty? = null, transitionOut: ValueProperty? = null, transitionTriggers: ValueProperty>? = null, visibility: ValueProperty? = null, visibilityAction: ValueProperty? = null, visibilityActions: ValueProperty>? = null, width: ValueProperty? = null, ): DivState { return DivState( accessibility = accessibility, alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, background = background, border = border, columnSpan = columnSpan, defaultStateId = defaultStateId, divId = divId, extensions = extensions, focus = focus, height = height, id = id, margins = margins, paddings = paddings, rowSpan = rowSpan, selectedActions = selectedActions, states = states, tooltips = tooltips, transform = transform, transitionAnimationSelector = transitionAnimationSelector, transitionChange = transitionChange, transitionIn = transitionIn, transitionOut = transitionOut, transitionTriggers = transitionTriggers, visibility = visibility, visibilityAction = visibilityAction, visibilityActions = visibilityActions, width = width, ) } fun CardContext.divState( states: List, accessibility: DivAccessibility? = null, alignmentHorizontal: DivAlignmentHorizontal? = null, alignmentVertical: DivAlignmentVertical? = null, alpha: Double? = null, background: List? = null, border: DivBorder? = null, columnSpan: Int? = null, defaultStateId: String? = null, divId: String? = null, extensions: List? = null, focus: DivFocus? = null, height: DivSize? = null, id: String? = null, margins: DivEdgeInsets? = null, paddings: DivEdgeInsets? = null, rowSpan: Int? = null, selectedActions: List? = null, tooltips: List? = null, transform: DivTransform? = null, transitionAnimationSelector: DivTransitionSelector? = null, transitionChange: DivChangeTransition? = null, transitionIn: DivAppearanceTransition? = null, transitionOut: DivAppearanceTransition? = null, transitionTriggers: List? = null, visibility: DivVisibility? = null, visibilityAction: DivVisibilityAction? = null, visibilityActions: List? = null, width: DivSize? = null, ): DivState { return DivState( accessibility = optionalValue(accessibility), alignmentHorizontal = optionalValue(alignmentHorizontal), alignmentVertical = optionalValue(alignmentVertical), alpha = optionalValue(alpha), background = optionalValue(background), border = optionalValue(border), columnSpan = optionalValue(columnSpan), defaultStateId = optionalValue(defaultStateId), divId = optionalValue(divId), extensions = optionalValue(extensions), focus = optionalValue(focus), height = optionalValue(height), id = optionalValue(id), margins = optionalValue(margins), paddings = optionalValue(paddings), rowSpan = optionalValue(rowSpan), selectedActions = optionalValue(selectedActions), states = value(states), tooltips = optionalValue(tooltips), transform = optionalValue(transform), transitionAnimationSelector = optionalValue(transitionAnimationSelector), transitionChange = optionalValue(transitionChange), transitionIn = optionalValue(transitionIn), transitionOut = optionalValue(transitionOut), transitionTriggers = optionalValue(transitionTriggers), visibility = optionalValue(visibility), visibilityAction = optionalValue(visibilityAction), visibilityActions = optionalValue(visibilityActions), width = optionalValue(width), ) } fun CardContext.state( stateId: ValueProperty, animationIn: ValueProperty? = null, animationOut: ValueProperty? = null, div: ValueProperty
? = null, swipeOutActions: ValueProperty>? = null, ): DivState.State { return DivState.State( animationIn = animationIn, animationOut = animationOut, div = div, stateId = stateId, swipeOutActions = swipeOutActions, ) } fun CardContext.state( stateId: String, animationIn: DivAnimation? = null, animationOut: DivAnimation? = null, div: Div? = null, swipeOutActions: List? = null, ): DivState.State { return DivState.State( animationIn = optionalValue(animationIn), animationOut = optionalValue(animationOut), div = optionalValue(div), stateId = value(stateId), swipeOutActions = optionalValue(swipeOutActions), ) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy