| | |
| | | companion object { |
| | | private const val DEFAULT_DEVICE = "default_device" |
| | | } |
| | | private val deviceMap = ConcurrentHashMap<String, ChannelHandlerContext?>() |
| | | private val deviceMap = ConcurrentHashMap<String?, ChannelHandlerContext?>() |
| | | private val typeMap = ConcurrentHashMap<String, List<AirTypeData>>() |
| | | |
| | | fun saveDevice(deviceCode: String?, channel: ChannelHandlerContext?) { |
| | | deviceCode?.let { |
| | | deviceMap.put(deviceCode, channel) |
| | | } |
| | | deviceMap[deviceCode] = channel |
| | | } |
| | | |
| | | fun getDevice(deviceCode: String?): ChannelHandlerContext? { |