package exh.md.utils import java.util.Locale enum class FollowStatus(val int: Int) { UNFOLLOWED(0), READING(1), COMPLETED(2), ON_HOLD(3), PLAN_TO_READ(4), DROPPED(5), RE_READING(6); companion object { fun fromDex(value: String?): FollowStatus = values().firstOrNull { it.name.toLowerCase(Locale.US) == value } ?: UNFOLLOWED fun fromInt(value: Int): FollowStatus = values().firstOrNull { it.int == value } ?: UNFOLLOWED } }