This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ir.android.baham.ui.base.partiotion | |
import androidx.recyclerview.widget.DiffUtil | |
sealed class ChangeListEvent { | |
data class ItemsAdded(val position: Int, val count: Int = 1) : ChangeListEvent() | |
data class ItemsRemoved(val position: Int, val count: Int = 1) : ChangeListEvent() | |
data class ItemsUpdated(val position: Int, val count: Int = 1,val payload: Any? = null) : ChangeListEvent() | |
data class ItemsChange(val diffResult: DiffUtil.DiffResult? = null) : ChangeListEvent() |