TTWaterMeterScanModel constructor
TTWaterMeterScanModel(
- Map map
Implementation
TTWaterMeterScanModel(Map map) {
this.name = map[TTResponse.name];
this.mac = map[TTResponse.mac];
this.isInited = map[TTResponse.isInited];
this.totalM3 = map[TTResponse.totalM3];
this.remainderM3 = map[TTResponse.remainderM3];
this.electricQuantity = map[TTResponse.electricQuantity];
this.waterValveFailure = map[TTResponse.waterValveFailure];
this.rssi = map[TTResponse.rssi];
this.onOff = map[TTResponse.onOff];
this.payMode = map[TTResponse.payMode] == 0
? TTMeterPayMode.postpaid
: TTMeterPayMode.prepaid;
this.scanTime = map[TTResponse.scanTime];
}