PedidoDetalle.kt 569 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
package com.example.ayudapy

data class PedidoDetalle (
    val count: Long,
    val next: String,
    val previous: Any? = null,
    val results: List<Resultado>
)

data class Resultado (
    val id: Long,
    val title: String,
    val message: String,
    val name: String,
    val phone: String,
    val address: String,
    val city: String,
    val location: locacion,
    val picture: String? = null,
    val active: Boolean,
    val added: String
)

data class locacion (
    val type: Type,
    val coordinates: List<Double>
)

enum class Type {
    Point
}