package com.adealink.weparty.webview.loader

interface IWebResourceConfig {

    val timeoutMS: Long

    val cachePath: String?

    val cacheSizeKB: Long

    val loaderType: LoaderType

    val reportHosts: Set<String>

}

class DefaultWebResourceConfig : IWebResourceConfig {

    override val timeoutMS: Long = 60_000L

    override val cachePath: String? = null

    override val cacheSizeKB: Long = 20 * 1024 //20M

    override val loaderType: LoaderType = LoaderType.OKHTTP

    override val reportHosts: Set<String> = setOf()

}