Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
1.5 kB
2
Indexable
Never
data class FilterApartmentJsonMock(
        val unitType: List<Fac>,
        val furnished: List<Fac>,
        val priceRange: List<PriceRange>
    )

fun getFilterApartmentJsonMock(): String {
        val filterApartmentJsonMock = FilterApartmentJsonMock(
            unitType = listOf(
                Fac(1, "fasilitas1", "event1", false),
                Fac(2, "fasilitas2", "event2", false),
                Fac(3, "fasilitas3", "event3", false)
            ),
            furnished = listOf(
                Fac(1, "fasilitas1", "event1", false),
                Fac(2, "fasilitas2", "event2", false),
                Fac(3, "fasilitas3", "event3", false)
            ),
            priceRange = listOf(
                PriceRange(10085, "test1", listOf("1000", "2000"), listOf("5000", "10000"), listOf("1000", "2000"), listOf("5000", "10000")),
                PriceRange(10086, "test2", listOf("1000", "2000"), listOf("5000", "10000"), listOf("1000", "2000"), listOf("5000", "10000")),
                PriceRange(10087, "test3", listOf("1000", "2000"), listOf("5000", "10000"), listOf("1000", "2000"), listOf("5000", "10000")),
                PriceRange(1008, "test399", listOf("1000", "2000"), listOf("5000", "10000"), listOf("1000", "2000"), listOf("5000", "10000")),
                PriceRange(10088, "test4", listOf("1000", "2000"), listOf("5000", "10000"), listOf("1000", "2000"), listOf("5000", "10000"))
            )
        )

        return Gson().toJson(filterApartmentJsonMock)
    }
Leave a Comment