class RestClient : JikanClient
Class that handle request.
isDebug
- : a boolean that indicate if you run it on debug or not. If yes, it'll throw exception if something happen.
url
- : Custom URL, will use default (Jikan URL) if null or empty.
<init> |
Class that handle request. RestClient(isDebug: Boolean = false, url: String? = null) |
request |
suspend fun request(endPoint: String, data: JsonObject? = null): JsonElement |
BASE_URL |
const val BASE_URL: String |