package space.nstart.pcp.slots_service.czml

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonInclude
import io.swagger.v3.oas.annotations.media.Schema
import lombok.AllArgsConstructor
import lombok.Data
import lombok.NoArgsConstructor


@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(description = "Узел CZML")
class CZMLColor(
    var rgba : Iterable<Int>? = null
) {
    constructor(r : Int, g : Int, b : Int, a : Int) : this (rgba = listOf(r,g,b,a))
}