Created
May 17, 2018 18:55
-
-
Save maskaravivek/6d64495bbec8f361cbfdc2b8c707bea2 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
@Singleton | |
class UserService @Inject | |
constructor(private var context: Context) { | |
fun displayUserName(name: String): String { | |
val userNameFormat = context.getString(R.string.display_user_name) | |
return String.format(Locale.ENGLISH, userNameFormat, name) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment