| | |
| | | |
| | | import com.flightfeather.uav.common.utils.DateUtil |
| | | import com.flightfeather.uav.common.utils.GsonUtils |
| | | import com.flightfeather.uav.lightshare.bean.DataVo |
| | | import com.flightfeather.uav.socket.bean.AirData |
| | | import com.flightfeather.uav.socket.eunm.FactorType |
| | | |
| | |
| | | return row.toTypedArray() |
| | | } |
| | | |
| | | fun RealTimeData.toDataVo() = DataVo( |
| | | DateUtil.instance.dateToString(dataTime, DateUtil.DateStyle.YYYY_MM_DD_HH_MM_SS), |
| | | deviceCode, |
| | | GsonUtils.parserJsonToArrayBeans(factors, AirData::class.java), |
| | | longitude?.toDouble(), latitude?.toDouble() |
| | | ) |
| | | |
| | | fun ElectricMinuteValue.toAirData(): List<AirData> { |
| | | return listOf( |
| | | AirData().apply { |