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

commonMain.org.ton.api.dht.DhtStore.kt Maven / Gradle / Ivy

package org.ton.api.dht

import org.ton.tl.*

public data class DhtStore(
    val value: DhtValue
) : TLFunction {
    override fun tlCodec(): TlCodec = DhtStoreTlConstructor
    override fun resultTlCodec(): TlCodec = DhtStored

    public companion object : TlCodec by DhtStoreTlConstructor
}

private object DhtStoreTlConstructor : TlConstructor(
    schema = "dht.store value:dht.value = dht.Stored"
) {
    override fun decode(input: TlReader): DhtStore {
        val value = input.read(DhtValue)
        return DhtStore(value)
    }

    override fun encode(output: TlWriter, value: DhtStore) {
        output.write(DhtValue, value.value)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy