Skip to content

Instantly share code, notes, and snippets.

@arkivanov
Created July 28, 2020 11:27
Show Gist options
  • Select an option

  • Save arkivanov/beb120458b3a5ac5f0332f1c7bb9c0bc to your computer and use it in GitHub Desktop.

Select an option

Save arkivanov/beb120458b3a5ac5f0332f1c7bb9c0bc to your computer and use it in GitHub Desktop.
TestKittenStoreParser
class TestKittenStoreParser : KittenStoreImpl.Parser {
override fun parse(json: String): Maybe<List<String>> =
json
.toSingle()
.filter { it != "" }
.map { it.split(SEPARATOR) }
.observeOn(TestScheduler())
private companion object {
private const val SEPARATOR = ";"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment