An interface is enough.

This commit is contained in:
Benoit Marty 2024-02-27 14:42:43 +01:00
parent 3e65f4bc99
commit 142338be07

View file

@ -20,9 +20,9 @@ import com.google.common.truth.Truth.assertThat
import io.element.android.libraries.sessionstorage.api.observer.SessionListener import io.element.android.libraries.sessionstorage.api.observer.SessionListener
class TestSessionListener : SessionListener { class TestSessionListener : SessionListener {
sealed class Event { sealed interface Event {
data class Created(val userId: String) : Event() data class Created(val userId: String) : Event
data class Deleted(val userId: String) : Event() data class Deleted(val userId: String) : Event
} }
private val trackRecord: MutableList<Event> = mutableListOf() private val trackRecord: MutableList<Event> = mutableListOf()