package id.iiyh.inatrading.feature.explore.data.model

data class LocationItem(
    val address: String? = null,
    val city: String? = null,
    val contact: String? = null,
    val country: String? = null,
    val description: String? = null,
    val id: String,
    val image1: String? = null,
    val image2: String? = null,
    val image3: String? = null,
    val image4: String? = null,
    val image5: String? = null,
    val latitude: Double? = null,
    val longitude: Double? = null,
    val name: String,
    val province: String? = null,
    val status: String? = null,
    val type: String? = null,
    val userInput: String? = null,
)

data class LocationListResponse(
    val responseCode: String? = null,
    val responseDesc: String? = null,
    val rows: List<LocationItem> = emptyList(),
    val totalItem: Int = 0,
    val totalPage: Int = 0,
) {
    val isSuccess: Boolean get() = responseCode == "0000"
}
