요약
sealed class SealedPromisePlaceCategory {
object PromisePlaceDecided : SealedPromisePlaceCategory() {
override val id: Int
get() = Int.MIN_VALUE
}
data class PromisePlaceCategory(
val entity: PromisePlaceCategoryEntity,
) : SealedPromisePlaceCategory() {
override val id: Int
get() = entity.id
}
object PromisePlaceCategoryAdd : SealedPromisePlaceCategory() {
override val id: Int
get() = Int.MIN_VALUE + 1
}
object PromisePlaceCategoryAddConfirm : SealedPromisePlaceCategory() {
override val id: Int
get() = Int.MIN_VALUE + 2
}
abstract val id: Int
}