-
Notifications
You must be signed in to change notification settings - Fork 0
/
Entry.kt
29 lines (24 loc) · 821 Bytes
/
Entry.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.bumble.puzzyx.model
import androidx.compose.runtime.Composable
import androidx.compose.ui.layout.ContentScale
sealed class Entry {
abstract val puzzle: Puzzle
abstract val githubUserName: String
data class Text(
override val puzzle: Puzzle,
override val githubUserName: String,
val message: String = fakeMessages.random()
) : Entry()
data class Image(
override val puzzle: Puzzle,
override val githubUserName: String,
val path: String,
val contentDescription: String? = null,
val contentScale: ContentScale = ContentScale.Fit
) : Entry()
data class ComposableContent(
override val puzzle: Puzzle,
override val githubUserName: String,
val content: @Composable () -> Unit
) : Entry()
}