aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cc/woverflow/chatting/chat/ChatTabsJson.kt
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-03-12 15:43:15 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-03-12 15:43:15 +0700
commiteece3cb994280498d2a9c259030cc79a4be3fce3 (patch)
treee23c8d6a1c2553d2511630012f275ffa15ebf532 /src/main/kotlin/cc/woverflow/chatting/chat/ChatTabsJson.kt
parent380e0adb5ef1401dd8cbf70b2ef7bc121c371c42 (diff)
downloadChatting-eece3cb994280498d2a9c259030cc79a4be3fce3.tar.gz
Chatting-eece3cb994280498d2a9c259030cc79a4be3fce3.tar.bz2
Chatting-eece3cb994280498d2a9c259030cc79a4be3fce3.zip
color property
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/chat/ChatTabsJson.kt')
-rw-r--r--src/main/kotlin/cc/woverflow/chatting/chat/ChatTabsJson.kt8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/kotlin/cc/woverflow/chatting/chat/ChatTabsJson.kt b/src/main/kotlin/cc/woverflow/chatting/chat/ChatTabsJson.kt
index e37ef7f..6954b8e 100644
--- a/src/main/kotlin/cc/woverflow/chatting/chat/ChatTabsJson.kt
+++ b/src/main/kotlin/cc/woverflow/chatting/chat/ChatTabsJson.kt
@@ -3,9 +3,13 @@ package cc.woverflow.chatting.chat
import com.google.gson.JsonArray
import com.google.gson.annotations.SerializedName
-data class ChatTabsJson(@SerializedName("tabs") val tabs: JsonArray, @SerializedName("version") var version: Int) {
+data class ChatTabsJson(@SerializedName("tabs") val tabs: JsonArray, var version: Int) {
override fun toString(): String {
- return "{\"tabs\": $tabs, \"version\": \"$version\"}"
+ return "{\"tabs\": $tabs, \"version\": $version}"
+ }
+
+ companion object {
+ const val VERSION = 4
}
} \ No newline at end of file