- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
private fun GetDeviceInfo(request: HttpServerRequest): HashMap<String, Info>
{
val deviceInfo = request.getParam(NAME_ID)?.let { id ->
(Ports.ById(id) ?: Ports.ByDeviceId(id))?.let(DeviceInfo.Companion::Create)
?: Files.FromPath(id)?.let { file ->
FileInfo.GetInfo(file)
} ?: (Core.GetTask(id) as? Scenario)?.SourceFile?.let(::FileInfo)
}
return deviceInfo?.let { hashMapOf(REQUEST_RESULT to it) } ?: hashMapOf()
}
Hu3KoypoBHeBblunemyx 21.02.2019 17:35 # +2
OCETuHCKuu_nemyx 22.02.2019 23:22 # +1
guest8 21.02.2019 17:52 # −999
6E3yMHblu_nemyx 21.02.2019 18:00 # +1
3_dar 22.01.2020 22:07 # 0
AnalBoy 22.01.2020 23:55 # 0
Her 22.02.2019 15:00 # +2
Perevedi_na_PHP 06.03.2019 21:17 # +1
guest8 06.03.2019 21:44 # −999
3_dar 22.01.2020 22:04 # 0
guest8 06.03.2019 21:52 # −999
nemyxuHxo 06.03.2019 21:52 # +1
OCETuHCKuu_nemyx 07.03.2019 00:32 # +1
groser 09.04.2019 23:34 # +1
pashaluk31 22.01.2020 17:56 # 0