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; } }