-
Notifications
You must be signed in to change notification settings - Fork 1
/
ListItem.kt
37 lines (32 loc) · 991 Bytes
/
ListItem.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
30
31
32
33
34
35
36
37
package live.videosdk.rtc.android.kotlin.Common.Modal
import android.graphics.drawable.Drawable
class ListItem {
var itemName: String
private set
lateinit var itemIcon: Drawable
private set
var isSelected: Boolean
private set
var itemDescription: String?
private set
constructor(itemName: String, itemIcon: Drawable) {
this.itemName = itemName
this.itemIcon = itemIcon
isSelected = false
itemDescription = null
}
constructor(itemName: String, itemIcon: Drawable?, selected: Boolean) {
this.itemName = itemName
if (itemIcon != null) {
this.itemIcon = itemIcon
}
isSelected = selected
itemDescription = null
}
constructor(itemName: String, itemDescription: String?, itemIcon: Drawable) {
this.itemName = itemName
this.itemIcon = itemIcon
isSelected = false
this.itemDescription = itemDescription
}
}