| package com.dy.common.mw.protocol.p206V1_0_0; | 
|   | 
| import lombok.Data; | 
|   | 
| @Data | 
| public class DataAlarmVo { | 
|     public Byte batteryVolt ;// 蓄电池电压 | 
|     public Byte loss ;//漏损 | 
|     public Byte meter ;//仪表 | 
|     public Byte valve ;//阀门 | 
|   | 
|     public String toString(){ | 
|         StringBuilder str = new StringBuilder() ; | 
|         str.append("      报警:\n"); | 
|         str.append("         蓄电池电压:"); | 
|         str.append(batteryVolt==null?"":(batteryVolt==1?"报警":"正常")); | 
|         str.append("\n"); | 
|         str.append("         漏损:"); | 
|         str.append(loss==null?"":(loss==1?"报警":"正常")); | 
|         str.append("\n"); | 
|         str.append("         仪表:"); | 
|         str.append(meter==null?"":(meter==1?"报警":"正常")); | 
|         str.append("\n"); | 
|         str.append("         阀门:"); | 
|         str.append(valve==null?"":(valve==1?"报警":"正常")); | 
|         return str.toString() ; | 
|     } | 
| } |