diff options
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt index 462fae79..a02cbe59 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt @@ -45,6 +45,12 @@ enum class FbItem( val url = "$FB_URL_BASE$relativeUrl" + val isFeed: Boolean + get() = when (this) { + FEED, FEED_MOST_RECENT, FEED_TOP_STORIES -> true + else -> false + } + override val bundleContract: EnumBundleCompanion<FbItem> get() = Companion |