Skip to content

Instantly share code, notes, and snippets.

@zsoltk
Created December 21, 2019 22:13
Show Gist options
  • Save zsoltk/9377c09e5a0d2253836558c31f2e66bb to your computer and use it in GitHub Desktop.
Save zsoltk/9377c09e5a0d2253836558c31f2e66bb to your computer and use it in GitHub Desktop.
sealed class RootRouting {
object LoggedOut: RootRouting()
data class LoggedIn(val user: User): RootRouting()
}
sealed class LoggedInRouting {
object News : LoggedInRouting()
object Gallery : LoggedInRouting()
object Profile : LoggedInRouting()
}
sealed class GalleryRouting {
object AlbumList: GalleryRouting()
data class PhotosOfAlbum(val album: Album) : GalleryRouting()
data class FullScreenPhoto(val photo: Photo) : GalleryRouting()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment