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

com.yandex.div.dsl.model.DivVisibilityAction.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 DivVisibilityAction internal constructor(
    @JsonIgnore val downloadCallbacks: Property?,
    @JsonIgnore val logId: Property?,
    @JsonIgnore val logLimit: Property?,
    @JsonIgnore val payload: Property>?,
    @JsonIgnore val referer: Property?,
    @JsonIgnore val url: Property?,
    @JsonIgnore val visibilityDuration: Property?,
    @JsonIgnore val visibilityPercentage: Property?,
) {

    @JsonAnyGetter
    internal fun properties(): Map {
        return propertyMapOf(
            "download_callbacks" to downloadCallbacks,
            "log_id" to logId,
            "log_limit" to logLimit,
            "payload" to payload,
            "referer" to referer,
            "url" to url,
            "visibility_duration" to visibilityDuration,
            "visibility_percentage" to visibilityPercentage,
        )
    }
}

fun  TemplateContext.divVisibilityAction(): LiteralProperty {
    return value(DivVisibilityAction(
        downloadCallbacks = null,
        logId = null,
        logLimit = null,
        payload = null,
        referer = null,
        url = null,
        visibilityDuration = null,
        visibilityPercentage = null,
    ))
}

fun  TemplateContext.divVisibilityAction(
    logId: Property? = null,
    downloadCallbacks: Property? = null,
    logLimit: Property? = null,
    payload: Property>? = null,
    referer: Property? = null,
    url: Property? = null,
    visibilityDuration: Property? = null,
    visibilityPercentage: Property? = null,
): LiteralProperty {
    return value(DivVisibilityAction(
        downloadCallbacks = downloadCallbacks,
        logId = logId,
        logLimit = logLimit,
        payload = payload,
        referer = referer,
        url = url,
        visibilityDuration = visibilityDuration,
        visibilityPercentage = visibilityPercentage,
    ))
}

fun  TemplateContext.divVisibilityAction(
    logId: String? = null,
    downloadCallbacks: DivDownloadCallbacks? = null,
    logLimit: Int? = null,
    payload: Map? = null,
    referer: URI? = null,
    url: URI? = null,
    visibilityDuration: Int? = null,
    visibilityPercentage: Int? = null,
): LiteralProperty {
    return value(DivVisibilityAction(
        downloadCallbacks = optionalValue(downloadCallbacks),
        logId = optionalValue(logId),
        logLimit = optionalValue(logLimit),
        payload = optionalValue(payload),
        referer = optionalValue(referer),
        url = optionalValue(url),
        visibilityDuration = optionalValue(visibilityDuration),
        visibilityPercentage = optionalValue(visibilityPercentage),
    ))
}

fun CardContext.divVisibilityAction(
    logId: ValueProperty,
    downloadCallbacks: ValueProperty? = null,
    logLimit: ValueProperty? = null,
    payload: ValueProperty>? = null,
    referer: ValueProperty? = null,
    url: ValueProperty? = null,
    visibilityDuration: ValueProperty? = null,
    visibilityPercentage: ValueProperty? = null,
): DivVisibilityAction {
    return DivVisibilityAction(
        downloadCallbacks = downloadCallbacks,
        logId = logId,
        logLimit = logLimit,
        payload = payload,
        referer = referer,
        url = url,
        visibilityDuration = visibilityDuration,
        visibilityPercentage = visibilityPercentage,
    )
}

fun CardContext.divVisibilityAction(
    logId: String,
    downloadCallbacks: DivDownloadCallbacks? = null,
    logLimit: Int? = null,
    payload: Map? = null,
    referer: URI? = null,
    url: URI? = null,
    visibilityDuration: Int? = null,
    visibilityPercentage: Int? = null,
): DivVisibilityAction {
    return DivVisibilityAction(
        downloadCallbacks = optionalValue(downloadCallbacks),
        logId = value(logId),
        logLimit = optionalValue(logLimit),
        payload = optionalValue(payload),
        referer = optionalValue(referer),
        url = optionalValue(url),
        visibilityDuration = optionalValue(visibilityDuration),
        visibilityPercentage = optionalValue(visibilityPercentage),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy