mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 21:07:04 +05:30
feat(api): remove tag search endpoints
This commit is contained in:
parent
42cc852a20
commit
d343f3db2b
6 changed files with 0 additions and 75 deletions
|
@ -1,27 +0,0 @@
|
|||
/*
|
||||
* Copyright © 2023 Harsh Shandilya.
|
||||
* Use of this source code is governed by an MIT-style
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
package dev.msfjarvis.claw.model
|
||||
|
||||
class Tags {
|
||||
private val tags = arrayListOf<String>()
|
||||
|
||||
fun addTag(tag: String) {
|
||||
tags.add(tag)
|
||||
}
|
||||
|
||||
fun removeTag(tag: String) {
|
||||
tags.remove(tag)
|
||||
}
|
||||
|
||||
operator fun contains(tag: String): Boolean {
|
||||
return tag in tags
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return tags.joinToString(",")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue