Move BookmarkType to an enum instead, for serialization purposes.
This commit is contained in:
+5
-5
@@ -20,12 +20,12 @@
|
|||||||
*/
|
*/
|
||||||
package com.vitorpamplona.amethyst.ui.screen.loggedIn.bookmarkgroups
|
package com.vitorpamplona.amethyst.ui.screen.loggedIn.bookmarkgroups
|
||||||
|
|
||||||
sealed interface BookmarkType {
|
enum class BookmarkType {
|
||||||
object PostBookmark : BookmarkType
|
PostBookmark,
|
||||||
|
|
||||||
object ArticleBookmark : BookmarkType
|
ArticleBookmark,
|
||||||
|
|
||||||
object LinkBookmark : BookmarkType
|
LinkBookmark,
|
||||||
|
|
||||||
object HashtagBookmark : BookmarkType
|
HashtagBookmark,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user