New file |
| | |
| | | package com.dy.common.mw.protocol.p206V1_0_0; |
| | | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class DataStateVo { |
| | | public Byte icCard;// IC卡功能 |
| | | public Byte working;//工作状态 |
| | | public Byte valve ;//阀门 |
| | | |
| | | public String toString(){ |
| | | StringBuilder str = new StringBuilder() ; |
| | | str.append(" 状态:\n"); |
| | | str.append(" IC 卡功能:"); |
| | | str.append(icCard ==null?"":(icCard ==1?"有效":"无效")); |
| | | str.append("\n"); |
| | | str.append(" 工作状态:"); |
| | | str.append(working ==null?"":(working ==1?"启动":"停止")); |
| | | str.append("\n"); |
| | | str.append(" 阀门状态:"); |
| | | str.append(valve==null?"":(valve==1?"打开":"关闭")); |
| | | return str.toString() ; |
| | | } |
| | | } |