Added option to save labels

and other improvements and fixes used for exports and imports
This commit is contained in:
2017-08-25 21:11:10 +02:00
parent cf6b3e2603
commit c8dfc3b459
9 changed files with 111 additions and 32 deletions

View File

@ -91,7 +91,7 @@ object MessageExport {
}
}
fun importLabels(input: JsonArray<Any?>): List<Label> {
fun importLabels(input: JsonArray<*>): List<Label> {
return input.filterIsInstance(JsonObject::class.java).map { json ->
Label(
label = json.string("label") ?: throw IllegalArgumentException("label expected"),