← Back to Stormify Documentation

HumanReadable

interface HumanReadable

Interface for entities or enum values that provide a localized, human-readable display name.

Used by PagedListBase enum/quantize columns to map between display names (what the user sees/types) and database values.

Example (mirrors the onl.ycode.stormify.DbValue pattern — constructor param propagated via override val):

enum class Status(override val displayName: String) : HumanReadable {
ACTIVE("Ενεργή"),
INACTIVE("Ανενεργή"),
BANNED("Αποκλεισμένη")
}

Properties

Link copied to clipboard
abstract val displayName: String

The localized, human-readable display name for this value.