Add APICache + splashscreen init.

This commit is contained in:
Thomas Andres Gomez 2021-05-09 14:45:37 +02:00
parent e9cb8cd0ac
commit 2ad8d5953a
16 changed files with 309 additions and 15 deletions

View file

@ -0,0 +1,4 @@
package com.pixelized.biblib.utils.exception
class MandatoryFieldMissingException(method: String, name: String, json: Any) :
RuntimeException("Parse exception: Mandatory field:'$name' is missing from:'$method', with data:$json")

View file

@ -0,0 +1,5 @@
package com.pixelized.biblib.utils.extention
fun Int.toBoolean(): Boolean = this != 0
fun Int?.toBoolean(): Boolean? = if (this == null) null else this != 0