mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Clean up
This commit is contained in:
parent
d2c0a997d2
commit
174be88134
@ -21,14 +21,6 @@ object Converters {
|
|||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun toByteArray(list: List<String>): ByteArray = list.toString().toByteArray()
|
fun toByteArray(list: List<String>): ByteArray = list.toString().toByteArray()
|
||||||
|
|
||||||
@TypeConverter
|
|
||||||
@JvmStatic
|
|
||||||
fun toProduct(byteArray: ByteArray) = Product.fromJson(String(byteArray))
|
|
||||||
|
|
||||||
@TypeConverter
|
|
||||||
@JvmStatic
|
|
||||||
fun toByteArray(product: Product) = product.toJSON().toByteArray()
|
|
||||||
|
|
||||||
@TypeConverter
|
@TypeConverter
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun toAuthor(byteArray: ByteArray) = Author.fromJson(String(byteArray))
|
fun toAuthor(byteArray: ByteArray) = Author.fromJson(String(byteArray))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user