com.deque.axe.android.moshi.AxeEventStreamAdapter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of axe-devtools-android-core Show documentation
Show all versions of axe-devtools-android-core Show documentation
The Axe Devtools Android Core Library
The newest version!
package com.deque.axe.android.moshi
import com.deque.axe.android.AxeEvent
import com.deque.axe.android.wrappers.AxeEventStream
import com.squareup.moshi.FromJson
import com.squareup.moshi.ToJson
internal class AxeEventStreamAdapter {
@ToJson
fun arrayListToJson(list: AxeEventStream): List = list
@FromJson
fun arrayListFromJson(list: List): AxeEventStream = AxeEventStream().also {
for (event: AxeEvent in list) {
it.addEvent(event)
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy