mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 12:57:04 +05:30
refactor: move Tags from api to model module
This commit is contained in:
parent
85c11e0e80
commit
f17375e9e1
4 changed files with 7 additions and 7 deletions
23
model/src/main/kotlin/dev/msfjarvis/claw/model/Tags.kt
Normal file
23
model/src/main/kotlin/dev/msfjarvis/claw/model/Tags.kt
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* 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)
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return tags.joinToString(",")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue