package org.autojs.autojs.project

import com.google.gson.annotations.SerializedName

data class ScriptConfig(
        @SerializedName("useFeatures") var features: List<String>,
        @SerializedName("uiMode") var uiMode: Boolean
) {
    constructor() : this(emptyList(), false)

    fun hasFeature(feature: String): Boolean {
        return features.contains(feature)
    }

    companion object {
        const val FEATURE_CONTINUATION = "continuation"
    }
}