feat(chat): 채팅방 필터 모델을 추가한다
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package kr.co.vividnext.sodalive.v2.main.chat.model
|
||||
|
||||
enum class ChatRoomFilter(val apiValue: String) {
|
||||
ALL("ALL"),
|
||||
AI("AI"),
|
||||
DM("DM");
|
||||
|
||||
companion object {
|
||||
fun fromTabIndex(index: Int): ChatRoomFilter = when (index) {
|
||||
1 -> AI
|
||||
2 -> DM
|
||||
else -> ALL
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user