15 lines
430 B
Kotlin
15 lines
430 B
Kotlin
package jp.juggler.subwaytooter.notification
|
|
|
|
enum class TrackingType(
|
|
val str: String,
|
|
val typeName: String,
|
|
) {
|
|
All("all", PullNotification.TRACKING_NAME_DEFAULT),
|
|
Reply("reply", PullNotification.TRACKING_NAME_REPLY),
|
|
NotReply("notReply", PullNotification.TRACKING_NAME_DEFAULT);
|
|
|
|
companion object {
|
|
fun parseStr(str: String?) = entries.firstOrNull { it.str == str } ?: All
|
|
}
|
|
}
|