mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
19 lines
862 B
Kotlin
19 lines
862 B
Kotlin
package com.lagradost.cloudstream3.ui
|
|
|
|
import androidx.annotation.DrawableRes
|
|
import androidx.annotation.StringRes
|
|
import com.lagradost.cloudstream3.R
|
|
|
|
enum class WatchType(val internalId: Int, @StringRes val stringRes: Int, @DrawableRes val iconRes: Int) {
|
|
// FIX ICONS
|
|
WATCHING(0, R.string.type_watching, R.drawable.ic_baseline_remove_red_eye_24),
|
|
COMPLETED(1, R.string.type_completed, R.drawable.ic_baseline_check_24),
|
|
ONHOLD(2, R.string.type_on_hold, R.drawable.ic_baseline_pause_24),
|
|
DROPPED(3, R.string.type_dropped, R.drawable.ic_baseline_close_24),
|
|
PLANTOWATCH(4, R.string.type_plan_to_watch, R.drawable.ic_baseline_close_24),
|
|
NONE(5, R.string.type_none, R.drawable.ic_baseline_remove_red_eye_24);
|
|
|
|
companion object {
|
|
fun fromInternalId(id: Int?) = values().find { value -> value.internalId == id } ?: NONE
|
|
}
|
|
} |