dave08
07/09/2018, 6:08 PMsealed class ServerResponse {
object Empty : ServerResponse()
data class Error(val statusCode: Int, val message: String, val exception: Exception? = null) : ServerResponse()
data class Json(val jsonObj: Any) : ServerResponse() {
val jsonString: String
get() = Klaxon().toJsonString(jsonObj)
}
}