-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTemplateItem.kt
More file actions
executable file
·29 lines (27 loc) · 1.06 KB
/
TemplateItem.kt
File metadata and controls
executable file
·29 lines (27 loc) · 1.06 KB
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.scouting.app.model
import androidx.compose.runtime.MutableState
import com.scouting.app.misc.TemplateTypes
data class TemplateItem(
// Require separate unique key from item index to allow drag and drop
var id: String,
var text: String,
var text2: String? = null,
var text3: String? = null,
var text4: String? = null,
var text5: String? = null,
var type: TemplateTypes,
// The type of the item will always be non null so by using the type
// we can determine which of these values we know will not be null
var itemValueInt: MutableState<Int>? = null,
var itemValue2Int: MutableState<Int>? = null,
var itemValue3Int: MutableState<Int>? = null,
var itemValue4Int: MutableState<Int>? = null,
var itemValue5Int: MutableState<Int>? = null,
var itemValueBoolean: MutableState<Boolean>? = null,
var itemValueString: MutableState<String>? = null,
var saveKey: String,
var saveKey2: String? = null,
var saveKey3: String? = null,
var saveKey4: String? = null,
var saveKey5: String? = null
)