dstarcev
07/29/2016, 8:20 AMinterface PropertyDetailsProvider {
fun getPropertyDetails(query: String): PropertyDetails
}
interface PropertyDetails {
data class Found(val address: String, val price: Double, val photos: List<String>)
data class NotFound() // <- doesn't work
}