CustomizableSerializer
interface CustomizableSerializer<T> : KSerializer<T> , CustomizableSerializationStrategy<T> , CustomizableDeserializationStrategy<T>
Inheritors
Properties
Link copied to clipboard
abstract val customDeserializationStrategies: Set<CustomizableDeserializationStrategy.JsonDeserializerStrategy<T>>
Contains JsonDeserializerStrategy which will be used in deserialize method when standard RawUpdate serializer will be unable to create RawUpdate (and Update as well)
Link copied to clipboard
abstract val customSerializationStrategies: Set<CustomizableSerializationStrategy.CustomSerializerStrategy<T>>
Contains CustomSerializerStrategy which will be used in Serialize method when standard RawUpdate serializer will be unable to create RawUpdate (and Update as well)
Link copied to clipboard
Functions
Link copied to clipboard
abstract fun addUpdateDeserializationStrategy(deserializationStrategy: CustomizableDeserializationStrategy.JsonDeserializerStrategy<T>): Boolean
Adding deserializationStrategy into customDeserializationStrategies for using in case of unknown update
Link copied to clipboard
abstract fun addUpdateSerializationStrategy(deserializationStrategy: CustomizableSerializationStrategy.CustomSerializerStrategy<T>): Boolean
Adding deserializationStrategy into customSerializationStrategies for using in case of unknown update
Link copied to clipboard
Link copied to clipboard
abstract fun removeUpdateDeserializationStrategy(deserializationStrategy: CustomizableDeserializationStrategy.JsonDeserializerStrategy<T>): Boolean
Removing deserializationStrategy from customDeserializationStrategies
Link copied to clipboard
abstract fun removeUpdateSerializationStrategy(deserializationStrategy: CustomizableSerializationStrategy.CustomSerializerStrategy<T>): Boolean
Removing deserializationStrategy from customSerializationStrategies