Blame view

app/src/main/java/com/ectrip/checkincar/model/VerifyRequest.java 874 Bytes
0fd093a2   李进   初始提交:手持车牌核销应用
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  package com.ectrip.checkincar.model;
  
  import org.json.JSONException;
  import org.json.JSONObject;
  
  /** 核销请求报文(草案,以后台正式文档为准) */
  public class VerifyRequest {
  
      public String plateNo;
      public String plateColor;
      public String staffId;
      public String deviceSn;
      public String mac;
      public String ip;
      public long timestamp;
  
      public JSONObject toJson() throws JSONException {
          JSONObject o = new JSONObject();
          o.put("plateNo", plateNo == null ? "" : plateNo);
          o.put("plateColor", plateColor == null ? "" : plateColor);
          o.put("staffId", staffId == null ? "" : staffId);
          o.put("deviceSn", deviceSn == null ? "" : deviceSn);
          o.put("mac", mac == null ? "" : mac);
          o.put("ip", ip == null ? "" : ip);
          o.put("timestamp", timestamp);
          return o;
      }
  }