package com.adealink.weparty.module.category.data

enum class CategoryAction(val action: Int) {
    FIND_PLAYMATE(0), //找陪玩
    APPLY_SKILL(1); //申请技能

    companion object {
        @JvmStatic
        fun map(action: Int?, default: CategoryAction = FIND_PLAYMATE): CategoryAction {
            return entries.find { it.action == action } ?: default
        }
    }
}
