Make commands data class

This commit is contained in:
Mygod
2020-08-07 06:54:19 +08:00
parent 8ecc455f6b
commit 7b94be74a2
3 changed files with 9 additions and 8 deletions

View File

@@ -49,7 +49,7 @@ object RepeaterCommands {
}
@Parcelize
class SetChannel(private val oc: Int) : RootCommand<ParcelableInt?> {
data class SetChannel(private val oc: Int) : RootCommand<ParcelableInt?> {
override suspend fun execute() = Services.p2p!!.run {
setWifiP2pChannels(obtainChannel(), 0, oc)?.let { ParcelableInt(it) }
}