Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
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.
// 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),
)
}