PedidosAyuda.kt 501 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 34
package com.example.ayudapy

data class PedidosAyuda (
    val type: String,
    val features: List<Feature>
)

data class Feature (
    val type: FeatureType,
    val geometry: Geometry,
    val properties: Properties
)

data class Geometry (
    val type: GeometryType,
    val coordinates: List<Double>
)

enum class GeometryType {
    Point
}

data class Properties (
    val pk: Long,
    val title: String,
    val name: String,
    val added: String
)

enum class FeatureType {
    Feature
}