retrofit: Retrofit = Retrofit .Builder() .baseUrl(endpoint) .client(okHttpClient) .addConverterFactory(WireConverterFactory.create()) .addCallAdapterFactory(RxJava2CallAdapterFactory.create()) .build() make an API call
retrofit: Retrofit = Retrofit .Builder() .baseUrl(endpoint) .client(okHttpClient) .addConverterFactory(WireConverterFactory.create()) .addCallAdapterFactory(RxJava2CallAdapterFactory.create()) .build() make an API call
retrofit: Retrofit = Retrofit .Builder() .baseUrl(endpoint) .client(okHttpClient) .addConverterFactory(WireConverterFactory.create()) .addCallAdapterFactory(RxJava2CallAdapterFactory.create()) .build() make an API call
{ val prefectures: ArrayList<Prefecture> = ArrayList() it.mapTo(prefectures) { value -> Prefecture().apply { id = value.id name = value.name romaji = value.romaji } } prefectures.toList() } } make an API call
{ val prefectures: ArrayList<Prefecture> = ArrayList() it.mapTo(prefectures) { value -> Prefecture().apply { id = value.id name = value.name romaji = value.romaji } } prefectures.toList() } } make an API call
{ val prefectures: ArrayList<Prefecture> = ArrayList() it.mapTo(prefectures) { value -> Prefecture().apply { id = value.id name = value.name romaji = value.romaji } } prefectures.toList() } } make an API call