commonMain.com.saveourtool.save.entities.vulnerability.VulnerabilityDateDto.kt Maven / Gradle / Ivy
The newest version!
package com.saveourtool.save.entities.vulnerability
import kotlinx.datetime.Clock
import kotlinx.datetime.LocalDateTime
import kotlinx.datetime.toLocalDateTime
import kotlinx.serialization.Serializable
/**
* @property date
* @property type
* @property vulnerabilityName
*/
@Serializable
data class VulnerabilityDateDto(
val date: LocalDateTime,
val type: VulnerabilityDateType,
val vulnerabilityName: String,
) {
companion object {
val empty = VulnerabilityDateDto(
Clock.System.now().toLocalDateTime(kotlinx.datetime.TimeZone.currentSystemDefault()),
VulnerabilityDateType.INTRODUCED,
"",
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy