Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
sorting all the things to do with devices
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed Dec 27, 2019
1 parent 08c8b98 commit 622cb17
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/com/andromeda/araserver/iot/WriteNewVal.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package com.andromeda.araserver.iot

import com.fasterxml.jackson.dataformat.yaml.YAMLMapper
import kotlin.reflect.KClass
import kotlin.reflect.KMutableProperty
import kotlin.reflect.full.memberProperties

class WriteNewVal {
fun main(classToMod: KClass<Any>, actionPair: List<String>?, any: Any) {
classToMod.memberProperties.filterIsInstance<KMutableProperty<*>>()
fun main(actionPair: List<String>?, any: Any): Any {
any::class.memberProperties.filterIsInstance<KMutableProperty<*>>()
.forEach { member ->
if (member.name == actionPair!![0]) {
println(member.name)
Expand All @@ -16,5 +17,7 @@ class WriteNewVal {
}

}
println(any)
return any
}
}

0 comments on commit 622cb17

Please sign in to comment.