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

commonMain.inkapplications.shade.events.EventSerializerContainer.kt Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package inkapplications.shade.events

import kotlinx.serialization.DeserializationStrategy

/**
 * Stores the serializers used for deserializing event stream data.
 */
interface EventSerializerContainer {
    /**
     * Register a deserializer for a specific event type.
     *
     * @param type The key used to designate this type on the json object.
     * @param deserializer Deserializer used for events of [type]
     */
    fun setDeserializer(type: String, deserializer: DeserializationStrategy)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy