Created
December 21, 2019 22:13
-
-
Save zsoltk/9377c09e5a0d2253836558c31f2e66bb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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