aromal.s
10/19/2016, 3:03 PMabstract class ResultCallback<T:Any>{
abstract fun onResponse(data : T)
abstract fun onError(exception: Exception?)
fun getTypeClass():Class<T>{
//return class of T
}
}
// somewhere else
val result = ResultCallback<String>(){
override fun onResponse(data: String) {
}
override fun onError(exception: Exception?) {
}
}