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

data class ProvinceItem(
    val code: String? = null,
    val id: String? = null,
    val name: String? = null,
)

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

data class CityItem(
    val code: String? = null,
    val id: String? = null,
    val name: String? = null,
    val provinceId: String? = null,
    val provinceName: String? = null,
)

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