Skip to content

Instantly share code, notes, and snippets.

@catalinghita8
Last active October 4, 2020 10:07
Show Gist options
  • Select an option

  • Save catalinghita8/bca05d171d97f05fe0efbda8480d8bd9 to your computer and use it in GitHub Desktop.

Select an option

Save catalinghita8/bca05d171d97f05fe0efbda8480d8bd9 to your computer and use it in GitHub Desktop.
data class UserProfile(
val name: String,
val profilePictureDrawableId: Int,
val lastActivityMinutes: Int,
val isOnline: Boolean
) {
companion object {
fun getMockProfileUser() = UserProfile("Catalin Ghita",
R.drawable.profile_pic,
2,
true)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment