Skip to content

Instantly share code, notes, and snippets.

@5AbhishekSaxena
Last active December 14, 2021 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 5AbhishekSaxena/838ca97357c390d05b5ff6a2ab889b69 to your computer and use it in GitHub Desktop.
Save 5AbhishekSaxena/838ca97357c390d05b5ff6a2ab889b69 to your computer and use it in GitHub Desktop.
Sealed class to define different types of sharing types
sealed class SharingType {
data class Default(val text: String) : SharingType()
data class SmsType(val sms: Sms) : SharingType()
data class WebBrowserType(val url: String) : SharingType()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment