Created
July 25, 2020 13:05
-
-
Save vikasmain/e75f1627b1859f1da3efc1729b1386cd to your computer and use it in GitHub Desktop.
This file contains 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 PlayersPresenter { | |
lateinit var playersUseCase:PlayersUseCase | |
fun getPlayersList() : Players? { | |
return playersUseCase.getPlayersData() | |
} | |
//ui manipulating | |
fun addPrefixToPlayerName(private val sex:String, private val playersName:String) { | |
if(sex.equals("Male"){ | |
return "Mr"+ playersName | |
}else{ | |
return "Mrs"+playersName | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment