refactor: move Tags from api to model module

This commit is contained in:
Harsh Shandilya 2023-02-22 00:22:44 +05:30
parent 85c11e0e80
commit f17375e9e1
No known key found for this signature in database
4 changed files with 7 additions and 7 deletions

View 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(",")
}
}