mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 18:30:20 +01:00
Store additional data that will allow us to reduce the number of verification SMSs.
This commit is contained in:
@@ -15,3 +15,15 @@ interface IntSerializer<T> : Serializer<T, Int>
|
||||
interface LongSerializer<T> : Serializer<T, Long>
|
||||
|
||||
interface ByteSerializer<T> : Serializer<T, ByteArray>
|
||||
|
||||
object StringStringSerializer : StringSerializer<String?> {
|
||||
|
||||
override fun serialize(data: String?): String {
|
||||
return data ?: ""
|
||||
}
|
||||
|
||||
override fun deserialize(data: String): String {
|
||||
return data
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user