All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.shoaky.sourcedownloader.sdk.PatternVariables.kt Maven / Gradle / Ivy

The newest version!
package xyz.shoaky.sourcedownloader.sdk

import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.core.type.TypeReference
import xyz.shoaky.sourcedownloader.sdk.util.Jackson

interface PatternVariables {

    @JsonIgnore
    fun variables(): Map {
        return Jackson.convert(this, object : TypeReference>() {})
    }

    companion object {
        val EMPTY = object : PatternVariables {}
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy