Created
August 14, 2020 05:18
-
-
Save Garyteck/8841a4195e46f6e7ed7eb6a8d249fc7d to your computer and use it in GitHub Desktop.
Crypto Adapter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CryptoAdapter : PagingDataAdapter { | |
fun bind(cryptoCurrency : CryptoCurrency?) { | |
cryptoCurrency?.let { | |
cryptoName.text = it.name | |
cryptoSymbol.text = it.symbol | |
cryptoPrice.text = ... | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment