Add description() for list events.

This commit is contained in:
KotlinGeekDev
2024-10-24 18:12:50 +01:00
parent 5a38267fc1
commit c79157f415
@@ -60,6 +60,8 @@ abstract class GeneralListEvent(
fun title() = tags.firstOrNull { it.size > 1 && it[0] == "title" }?.get(1)
fun description() = tags.firstOrNull { it.size > 1 && it[0] == "description" }?.get(1)
fun nameOrTitle() = name()?.ifBlank { null } ?: title()?.ifBlank { null }
fun cachedPrivateTags(): Array<Array<String>>? = privateTagsCache