|
|
@@ -12,7 +12,7 @@ import com.grkj.iscs.util.log.LogUtil
|
|
|
*/
|
|
|
class DeviceBean(
|
|
|
var idx: Byte?,
|
|
|
- private var type: Byte?,
|
|
|
+ var type: Byte?,
|
|
|
var keyList: MutableList<KeyBean>,
|
|
|
var lockList: MutableList<LockBean>
|
|
|
) {
|
|
|
@@ -32,8 +32,8 @@ class DeviceBean(
|
|
|
val isRightCharging = (byteArray[3].toInt() shr 1) and 0x1 == 1
|
|
|
LogUtil.i("钥匙刷新状态 : $leftHasKey - $isLeftCharging - $rightHasKey - $isRightCharging")
|
|
|
if (keyList.isEmpty()) {
|
|
|
- keyList.add(KeyBean(true, leftHasKey, isLeftCharging))
|
|
|
- keyList.add(KeyBean(false, rightHasKey, isRightCharging))
|
|
|
+ keyList.add(KeyBean(true, leftHasKey, isLeftCharging, null))
|
|
|
+ keyList.add(KeyBean(false, rightHasKey, isRightCharging, null))
|
|
|
return null
|
|
|
}
|
|
|
|
|
|
@@ -107,7 +107,7 @@ class DeviceBean(
|
|
|
/**
|
|
|
* 钥匙
|
|
|
*/
|
|
|
- data class KeyBean(var isLeft: Boolean, var hasKey: Boolean, var isCharging: Boolean)
|
|
|
+ data class KeyBean(var isLeft: Boolean, var hasKey: Boolean, var isCharging: Boolean, var rfid: String?)
|
|
|
/**
|
|
|
* 锁具
|
|
|
*
|