mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
An interface is enough.
This commit is contained in:
+3
-3
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user