main.com.sceyt.chatuikit.presentation.components.picker.adapter.MediaData.kt Maven / Gradle / Ivy
package com.sceyt.chatuikit.presentation.components.picker.adapter
import android.net.Uri
import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.sceyt.chatuikit.BR
import com.sceyt.chatuikit.presentation.components.picker.BottomSheetMediaPicker
data class MediaData(
val contentUri: Uri,
val realPath: String,
val isWrong: Boolean,
val mediaType: BottomSheetMediaPicker.MediaType
) : BaseObservable() {
var selected: Boolean = false
@Bindable get
set(value) {
field = value
notifyPropertyChanged(BR.selected)
}
}