pull/32/head
atbest 6 years ago
parent dab348e601
commit 05629e3860
  1. 6
      app/src/main/java/io/legado/app/utils/MiscExtensions.kt

@ -2,8 +2,8 @@ package io.legado.app.utils
import com.jayway.jsonpath.ReadContext
fun ReadContext.readString(path: String) = this.read(path, String::class.java)
fun ReadContext.readString(path: String): String? = this.read(path, String::class.java)
fun ReadContext.readBool(path: String) = this.read(path, Boolean::class.java)
fun ReadContext.readBool(path: String): Boolean? = this.read(path, Boolean::class.java)
fun ReadContext.readInt(path: String) = this.read(path, Int::class.java)
fun ReadContext.readInt(path: String): Int? = this.read(path, Int::class.java)
Loading…
Cancel
Save