aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/contracts/FrostUrlData.kt
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/contracts/FrostUrlData.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/contracts/FrostUrlData.kt25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/contracts/FrostUrlData.kt b/app/src/main/kotlin/com/pitchedapps/frost/contracts/FrostUrlData.kt
new file mode 100644
index 00000000..18467fa4
--- /dev/null
+++ b/app/src/main/kotlin/com/pitchedapps/frost/contracts/FrostUrlData.kt
@@ -0,0 +1,25 @@
+package com.pitchedapps.frost.contracts
+
+import com.pitchedapps.frost.facebook.FbItem
+
+/**
+ * Created by Allan Wang on 19/12/17.
+ */
+interface FrostUrlData {
+
+ /**
+ * The main (and fallback) url
+ */
+ var baseUrl: String
+
+ /**
+ * Only base viewpager should pass an enum
+ */
+ var baseEnum: FbItem?
+
+ fun passUrlDataTo(other: FrostUrlData) {
+ other.baseUrl = baseUrl
+ other.baseEnum = baseEnum
+ }
+
+} \ No newline at end of file