I am trying to retrieve data from below two API requests using retrofit client and want to display in Listview
I am getting response from both below API requests with differenr fields
In below API, coin name, coin price https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest
In below API, logo https://pro-api.coinmarketcap.com/v1/cryptocurrency/info
How to combine both above request responses in separate POJO class?
CoinName.kt data class CoinName( var name: String, var price: String )
CoinInfo.kt data class CoinInfo( var logo: String )
I want to show coin name, coin price, logo fields in my Listview. But coin name and price is present in class CoinName and logo present in CoinInfo class