This commit is contained in:
UnrealValentin
2021-05-28 18:39:48 +02:00
parent 288e56f035
commit f0f6015d6f
8 changed files with 266 additions and 160 deletions

View File

@@ -1,3 +1,4 @@
@file:JvmName("DataIO")
package de.wulkanat
import de.wulkanat.extensions.ensureExists
@@ -32,7 +33,16 @@ data class AdminFile(
val token: String = "12345",
val updateMs: Long = 30000,
val watchingMessage: String = "for new Blogposts",
val offlineMessage: String = "CONNECTION FAILED"
val offlineMessage: String = "CONNECTION FAILED",
var twitterApi: TwitterApi? = TwitterApi()
)
@Serializable
data class TwitterApi(
val accessToken: String = "accessTokenHere",
val accessTokenSecret: String = "accessTokenSecretHere",
val apiKey: String = "apiKeyHere",
val apiKeySecret: String = "Api Key secret here"
)
val json = Json(JsonConfiguration.Stable)