package dp.kotul.templategroupsbackend.model.response

import com.fasterxml.jackson.annotation.JsonProperty
import dp.kotul.solrapimodel.solrsearch.TemplateType

data class TemplateDetailResponse (
        val templateId: Int,
        val templateExtId: String,
        val templateType: TemplateType,
        val name: String,
        val thumbnailRef: String,
        val lowResRef: String,
        val sortOrder: Int,
        @get:[JsonProperty("templateVariables")]
        val templateGroupVariables: List<TemplateGroupVariableDetailResponse> = emptyList()
) {
    fun getType() = templateType.value
}
