fix(model): implement contains operator fun for Tags

This commit is contained in:
Harsh Shandilya 2023-05-04 03:32:50 +05:30
parent 4d78a73602
commit 5c8057d71f
No known key found for this signature in database

View file

@ -17,6 +17,10 @@ class Tags {
tags.remove(tag)
}
operator fun contains(tag: String): Boolean {
return tag in tags
}
override fun toString(): String {
return tags.joinToString(",")
}