package space.nstart.pcp_tgu_service.dto

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import java.time.Instant

/** Платформа из root-array ответа НСИ. */
@JsonIgnoreProperties(ignoreUnknown = true)
data class NsiPlatformDto(
    val id: String?,
    val businessKey: String?,
    val data: NsiPlatformDataDto?,
    val validFrom: Instant?,
    val validTo: Instant?
)

/** Согласованные поля объекта data платформы НСИ. */
@JsonIgnoreProperties(ignoreUnknown = true)
data class NsiPlatformDataDto(
    val name: String?,
    val status: String?,
    @param:JsonProperty("norad_id")
    val noradId: Long?,
    val mission: String?
)

data class PlatformResponse(
    val id: String,
    val businessKey: String?,
    val name: String?,
    val status: String?,
    val noradId: Long?,
    val mission: String?,
    val validFrom: Instant?,
    val validTo: Instant?
)
